Live threats

All CVEs / Apache

CVE-2016-6798Apache Sling

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
3.7%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Jul 19, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-611
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

In the XSS Protection API module before 1.0.12 in Apache Sling, the method XSS.getValidXML() uses an insecure SAX parser to validate the input string, which allows for XXE attacks in all scripts which use this method to validate user input, potentially allowing an attacker to read sensitive data on the filesystem, perform same-site-request-forgery (SSRF), port-scanning behind the firewall or DoS the application.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sling.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.sling:org.apache.sling.xss < 1.0.12 1.0.12 —
Maven org.apache.sling:org.apache.sling.xss.compat < 1.1.0 1.1.0 —

Per OSV / GitHub Advisories (GHSA-7g54-vgp6-jj5w). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachesling≤ 1.0.10

Official sources

References

Links published by the sources. Open them with care.