{"id":"CVE-2026-123765","kind":"vulnerability","aliases":["CVE-2026-123765"],"related":[],"title":"Apache Sling XSS: unquoted URLs in getStyleToken let attackers inject script","description":"Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Apache Sling XSS. xssAPI.getStyleToken() accepts markup in unquoted urls.\n\n\n\nThis issue affects Apache Sling XSS: before 2.4.14.\n\n\n\nUsers are recommended to upgrade to version 2.4.14, which fixes the issue.","summary":"The Apache Sling XSS library's xssAPI.getStyleToken() accepts markup inside unquoted URLs, so untrusted input can escape sanitization. An attacker who gets input rendered through this function can run script in a victim's browser.","severity":"unknown","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["aem","apache-sling","java","package"],"not_affected_if":["fixed-version-2.4.14-or-later","no-getstyletoken-calls"],"how_to_check":"- Look for the `org.apache.sling.xss` bundle in your Sling or AEM project dependencies and note its version.\n- Search your code for calls to `xssAPI.getStyleToken` that render user-supplied values in style attributes or CSS URLs.","fix":"- Apache Sling XSS: upgrade to `2.4.14` or later.","status":"open","published_at":"2026-11-12T10:17:28+00:00","first_seen_at":"2026-11-12T10:37:45+00:00","triaged_at":"2026-11-12T10:39:43+00:00","updated_at":"2026-11-12T10:39:43+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-12T10:39:43Z","model":"claude-haiku-5-5","output":{"fix":"- Apache Sling XSS: upgrade to `2.4.14` or later.","reach":"internet","title":"Apache Sling XSS: unquoted URLs in getStyleToken let attackers inject script","impact":"medium","summary":"The Apache Sling XSS library's xssAPI.getStyleToken() accepts markup inside unquoted URLs, so untrusted input can escape sanitization. An attacker who gets input rendered through this function can run script in a victim's browser.","audience":"developers","category":"package","nicknames":[],"who_cares":["apache-sling","aem","java"],"confidence":0.6,"fix_status":"available","needs_auth":"unknown","worst_case":"script runs in victim browsers on the affected site","analyst_note":"","how_to_check":"- Look for the `org.apache.sling.xss` bundle in your Sling or AEM project dependencies and note its version.\n- Search your code for calls to `xssAPI.getStyleToken` that render user-supplied values in style attributes or CSS URLs.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["fixed-version-2.4.14-or-later","no-getStyleToken-calls"],"who_is_affected":"Applications built on Apache Sling that use the XSS library's getStyleToken() to output user-controlled values in styles or URLs are exposed. Sites that do not call this function, or that run a version at or above 2.4.14, are not affected.","user_interaction":"unknown","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000732,"input_tokens":4566,"output_tokens":551,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-123765':14A,17A '-2026':13A,16A '2.4.14':89C,97C 'accept':31B,77C 'aem':18B 'affect':84C 'apach':1A,20B,25B,73C,85C 'apache-sl':19B 'attack':9A,43B 'browser':58B 'cross':68C 'cross-sit':67C 'cve':12A,15A 'escap':40B 'fix':99C 'function':50B 'generat':66C 'get':45B 'getstyletoken':7A 'improp':59C 'inject':10A 'input':38B,46B,62C 'insid':33B 'issu':83C,101C 'java':22B 'let':8A 'librari':28B 'markup':32B,78C 'neutral':60C 'packag':23B 'page':65C 'recommend':92C 'render':47B 'run':52B 'sanit':41B 'script':11A,53B,70C 'site':69C 'sling':2A,21B,26B,74C,86C 'unquot':4A,34B,80C 'untrust':37B 'upgrad':94C 'url':5A,35B,81C 'user':90C 'version':96C 'victim':56B 'vulner':71C 'web':64C 'xss':3A,27B,75C,87C 'xssapi.getstyletoken':30B,76C","nicknames":[],"mitigations":[],"who_affected":"Applications built on Apache Sling that use the XSS library's getStyleToken() to output user-controlled values in styles or URLs are exposed. Sites that do not call this function, or that run a version at or above 2.4.14, are not affected.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["aem","apachesling","java","package","unknown"],"campaign_type":null,"search_a":"'-123765':14A,17A '-2026':13A,16A 'apach':1A 'attack':9A 'cve':12A,15A 'getstyletoken':7A 'inject':10A 'let':8A 'script':11A 'sling':2A 'unquot':4A 'url':5A 'xss':3A","search_b":"'accept':31B 'aem':18B 'apach':20B,25B 'apache-sl':19B 'attack':43B 'browser':58B 'escap':40B 'function':50B 'get':45B 'input':38B,46B 'insid':33B 'java':22B 'librari':28B 'markup':32B 'packag':23B 'render':47B 'run':52B 'sanit':41B 'script':53B 'sling':21B,26B 'unquot':34B 'untrust':37B 'url':35B 'victim':56B 'xss':27B 'xssapi.getstyletoken':30B","search_c":"'2.4.14':89C,97C 'accept':77C 'affect':84C 'apach':73C,85C 'cross':68C 'cross-sit':67C 'fix':99C 'generat':66C 'improp':59C 'input':62C 'issu':83C,101C 'markup':78C 'neutral':60C 'page':65C 'recommend':92C 'script':70C 'site':69C 'sling':74C,86C 'unquot':80C 'upgrad':94C 'url':81C 'user':90C 'version':96C 'vulner':71C 'web':64C 'xss':75C,87C 'xssapi.getstyletoken':76C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-12T10:17:28+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-123765","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123765","severity":null,"published_at":"2026-11-12T10:17:28+00:00","modified_at":"2026-11-12T10:17:28+00:00","first_seen_at":"2026-11-12T10:37:45+00:00","fetched_at":"2026-11-12T10:37:45+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}