# Java analysis detects more XXE vulnerabilities

**URL:** <https://community.sonarsource.com/t/java-analysis-detects-more-xxe-vulnerabilities/21364>\
**Category:** Sonar Updates\
**Tags:** security, java\
**Created:** [March 10, 2020, 8:58am UTC](https://community.sonarsource.com/t/java-analysis-detects-more-xxe-vulnerabilities/21364 "2020-03-10T08:58:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Gigleux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexandre_gigleux/32/26_2.png) [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Post date:** [March 10, 2020, 8:58am UTC](https://community.sonarsource.com/t/java-analysis-detects-more-xxe-vulnerabilities/21364/1 "2020-03-10T08:58:10Z")

</div>

Hello Java developers,

The Java analyzer was updated to detect more XXE vulnerabilities and it allows to follow the OWASP recommendations described in the [OWASP XML External Entity Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#java).

The accuracy of the XXE detection rule was improved (better issue locations, less FPs) and it now covers “org.jdom2.input.SAXBuilder” and “org.dom4j.io.SAXReader” APIs.

Finally, we added 2 new security rules related to authentication and permission.

Vulnerability Detection:

- [S2755](https://rules.sonarsource.com/java/RSPEC-2755): XML parsers should not be vulnerable to XXE attacks (Blocker)
- [S5679](https://rules.sonarsource.com/java/RSPEC-5679): OpenSAML2 should be configured to prevent authentication bypass (Major)

Security Hotspot Detection:

- [S2612](https://rules.sonarsource.com/java/RSPEC-2612): Setting loose file permissions is security-sensitive

For more information, you can check the [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10973&version=15253).

These features are already available on [SonarCloud](https://sonarcloud.io/), and will be included in SonarQube 8.3. If you can’t wait, you can already install the v6.2 of the Java analyzer from the Marketplace.

Alex
