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
Published: 2026-09-23
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Reflected Cross‑Site Scripting in features using XSSAPI.getValidHref()
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Wed, 23 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
References

Wed, 23 Sep 2026 15:30:00 +0000

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'}


Wed, 23 Sep 2026 11:45:00 +0000

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

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-09-23T17:08:11.709Z

Reserved: 2026-08-11T11:21:29.423Z

Link: CVE-2026-73192

cve-icon Vulnrichment

Updated: 2026-09-23T17:08:11.709Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-23T10:17:07.660

Modified: 2026-09-23T17:58:26.570

Link: CVE-2026-73192

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T17:30:06Z

Weaknesses
  • CWE-79

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