CVE-2026-73192

Apache Sling XSS: XSS possible through XSSAPI.getValidHref()

Published Sep 23, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
An improper neutralization of input during web page generation ('Cross-site Scripting') [CWE-79] vulnerability when using the XSSAPI.getValidHref() in Apache Sling XSS version 2.4.10 and prior may allow an attacker to perform a reflected cross-site scripting (XSS) attack in every feature using this method. In order to successfully attack an application, the attacker needs to be able to submit a value which is not correctly sanitized by that library.

Upgrade to Apache Sling XSS >= 2.4.12

Analysis

AI-generated

Technical impact

Apache Sling XSS contains a flaw in the XSSAPI.getValidHref() method where user input is not properly neutralized before being embedded in a web page. The vulnerability can be exploited to inject malicious scripts that are reflected back to the browser, allowing an attacker to execute arbitrary client‑side code in the victim's session. The weakness is categorized as CWE‑79.

Affected Systems

The defect is present in Apache Sling XSS versions 2.4.10 and all earlier releases distributed by the Apache Software Foundation. Systems running those versions should assess the exact build and apply the recommended upgrade path.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity, and with an EPSS score of less than 1% the likelihood of exploitation is very low but non‑zero. The vulnerability is not listed in CISA KEV. Attackers need only supply unsanitized input to a feature that calls getValidHref(), with no special privileges required. Because the affected method is used throughout the framework, any feature that renders user‑controlled data is potentially at risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Sling XSS to version 2.4.12 or later, which removes the vulnerable implementation of getValidHref().
  • If an upgrade cannot be performed immediately, eliminate or replace all calls to XSSAPI.getValidHref() with safer URL handling or perform strict server‑side validation before rendering.
  • Apply generic input validation: whitelist accepted URL patterns and escape all user‑supplied output before inclusion in HTML or JavaScript contexts.

Generated by OpenCVE AI on September 23, 2026 at 17:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Apache sling Xss Protection Api
CPEs cpe:2.3:a:apache:sling_xss_protection_api:*:*:*:*:*:*:*:*
Vendors & Products Apache sling Xss Protection Api
Type Values Removed Values Added
First Time appeared Apache
Apache sling Xss
Vendors & Products Apache
Apache sling Xss
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An improper neutralization of input during web page generation ('Cross-site Scripting') [CWE-79] vulnerability when using the XSSAPI.getValidHref() in Apache Sling XSS version 2.4.10 and prior may allow an attacker to perform a reflected cross-site scripting (XSS) attack in every feature using this method. In order to successfully attack an application, the attacker needs to be able to submit a value which is not correctly sanitized by that library. Upgrade to Apache Sling XSS >= 2.4.12
Title Apache Sling XSS: XSS possible through XSSAPI.getValidHref()
Weaknesses CWE-79
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 23, 2026, 5:08 PM
Reserved
Aug 11, 2026, 11:21 AM
Status
Analyzed
Published
Sep 23, 2026, 10:17 AM
Modified
Sep 30, 2026, 4:14 PM