Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.sling/org.apache.sling.servlets.post
  4. ›
  5. CVE-2017-9802

CVE-2017-9802: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

May 14, 2022 (updated June 30, 2022)

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.

References

  • packetstormsecurity.com/files/143758/Apache-Sling-Servlets-Post-2.3.20-Cross-Site-Scripting.html
  • www.securityfocus.com/archive/1/541024/100/0/threaded
  • www.securityfocus.com/bid/100284
  • github.com/advisories/GHSA-8c82-9rgp-4qvr
  • issues.apache.org/jira/browse/SLING-7041
  • lists.apache.org/thread.html/2f4b8333e44c6e7e0b00933bd4204ce64829952f60dbb6814f2cdf91@%3Cdev.sling.apache.org%3E
  • nvd.nist.gov/vuln/detail/CVE-2017-9802

Code Behaviors & Features

Detect and mitigate CVE-2017-9802 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.22

Fixed versions

  • 2.3.22

Solution

Upgrade to version 2.3.22 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.apache.sling/org.apache.sling.servlets.post/CVE-2017-9802.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.