CVE-2016-5394 · redhat
CVE-2016-5394
In the XSS Protection API module before 1.0.12 in Apache Sling, the encoding done by the XSSAPI.encodeForJSString() method is not restrictive enough and for some input patterns allows script tags to pass through unencoded, leading to potential XSS vulnerabilities.
Published 2017-07-19, last changed 2026-06-17. Weakness: CWE-79.
How to fix
Upgrade to a fixed version: org.apache.sling:org.apache.sling.xss 1.0.12 (Maven); org.apache.sling:org.apache.sling.xss.compat 1.1.0 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-07-19 | Published |
| 2022-05-13 | Package advisory GHSA-xwf4-88xr-hx2j |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.60% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-xwf4-88xr-hx2j | org.apache.sling:org.apache.sling.xss (Maven) | 1.0.12 |
| GHSA-xwf4-88xr-hx2j | org.apache.sling:org.apache.sling.xss.compat (Maven) | 1.1.0 |
Also known as: GHSA-xwf4-88xr-hx2j
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2017-15717 | 2018-01-10 | 6.1 | same package: org.apache.sling:org.apache.sling.xss (Maven) |
| CVE-2016-6798 | 2017-07-19 | 9.8 | same package: org.apache.sling:org.apache.sling.xss (Maven) |
| CVE-2026-128824 | 2026-11-13 | 5.4 | Quay: quay: reflected xss via image_id in v1 registry error responses |
| CVE-2026-109131 | 2026-10-15 | 5.4 | Ansible-ui: ansible-ui: stored xss via unsafe javascript url scheme in hub collection module documentation (formatparturl) |
| CVE-2026-107889 | 2026-10-09 | 5.5 | Keycloak-services: keycloak-services: stored xss on login page via kcsanitize bypass |
| CVE-2026-106033 | 2026-10-06 | 5.4 | Ansible: ansible-ui: ansible ui dom xss in /redirect next parameter |
| CVE-2026-102576 | 2026-10-05 | 4.2 | Quay: quay: dom-based cross-site scripting via unvalidated redirect_url on signin page |
| CVE-2026-102295 | 2026-10-05 | 5.4 | Quay: quay: dom-based cross-site scripting via oauth local callback format=json parameter |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-5394, or call /api/v1/vulnerabilities/CVE-2016-5394. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.