CVE-2017-9802 Improper Neutralization of Input During Web Page Generation Apache Sling Servlets Post
Cross-site scripting vulnerability in Apache Sling Servlets Post allows attackers to execute arbitrary JavaScript via crafted input strings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-9802?
CVE-2017-9802 is a medium-severity cross-site scripting vulnerability in n/a, published on 14 Aug 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2017-9802?
2 open source packages ship an affected version, including org.apache.sling:org.apache.sling.servlets.post. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.sling:org.apache.sling.servlets.post Maven | All versions | 2.3.22 |
org.apache.sling:org.apache.sling.servlets.post Maven | All versions | 2.3.22 |
Products include Apache Sling Servlets Post.
How do I fix CVE-2017-9802?
Upgrade org.apache.sling:org.apache.sling.servlets.post to 2.3.22 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-9802 being exploited?
There is no known exploitation of CVE-2017-9802 in the wild and no public exploit code.
Sources
Also known as GHSA-8c82-9rgp-4qvr.