CVE-2017-9802
MEDIUM 6.1CVSS 3.0Improper Neutralization of Input During Web Page Generation Apache Sling Servlets Post
The Javascript method Sling.evalString() in Apache Sling Servlets Post before 2.3.22 uses the javascript 'eval' function to parse input strings, which allows for XSS attacks by passing specially crafted input strings.
- Published
- 14 Aug 2017
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-8c82-9rgp-4qvr
- Sources
- NVDJSONOSV GHSA-8c82-9rgp-4qvrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | sling_servlets_postcpe:2.3:a:apache:sling_servlets_post:*:*:*:*:*:*:*:* |
<= 2.3.20 | |
| OSV | Maven | org.apache.sling:org.apache.sling.servlets.post | < 2.3.22 | 2.3.22 |
References
- http://packetstormsecurity.com/files/143758/Apache-Sling-Servlets-Post-2.3.20-Cross-Site-Scripting.html · WEB
- http://www.securityfocus.com/archive/1/541024/100/0/threaded · WEB
- http://www.securityfocus.com/bid/100284 · Third Party Advisory, VDB Entry, WEB
- https://issues.apache.org/jira/browse/SLING-7041 · Issue Tracking, Vendor Advisory, WEB
- https://lists.apache.org/thread.html/2f4b8333e44c6e7e0b00933bd4204ce64829952f60dbb6814f2cdf91%40%3Cdev.sling.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2017-9802 · ADVISORY
- https://lists.apache.org/thread.html/2f4b8333e44c6e7e0b00933bd4204ce64829952f60dbb6814f2cdf91@%3Cdev.sling.apache.org%3E · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 14 Aug 2017)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 14 May 2022)