GHSA-74p8-hchc-xvmg
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft class file with scripted attribute name
-
DeliverySubmit to Class2HTML report workflow
-
ExploitUnescaped name stored in generated HTML
-
ExecutionVictim opens code report in browser
-
ImpactScript executes in victim context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an operator uses the Class2HTML tool (specifically CodeHTML.writeMethod) to generate HTML code reports from class files that an attacker can influence, and that the malicious class contains an unknown method attribute whose name (an arbitrary CONSTANT_Utf8 value) includes HTML metacharacters. The stored XSS only fires when a victim subsequently opens the generated report HTML in a browser (UI:R). Limiting factors: this is not a flaw in normal BCEL bytecode parsing or library embedding - it is confined to the Class2HTML/CodeHTML reporting path; it needs attacker-controlled class input, operator-driven report generation, and victim rendering of the output, and CVSS marks it AC:H / AT:P, reflecting these non-default, multi-actor preconditions. Affected versions are Apache Commons BCEL before 6.14.1; upgrading to 6.14.1 is the fix. |
| Impact | This is a low-priority, high-conditionality issue rather than an urgent one. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, 4.7 medium) and the CVSS 4.0 vector (2.3 low) both reflect limited impact: Confidentiality/Integrity are only Low, Availability is None, and the attack requires both high complexity (AC:H / AT:P) and victim interaction (UI:R / UI:P). No EPSS score is provided and the vulnerability is not on CISA KEV, so there is no public evidence of exploitation probability or active abuse - the vuln.today Decision label is 'awaiting_data', meaning prioritization signals are incomplete rather than pointing to emergency action. There is no public exploit identified at time of analysis; the patch commit ships a unit test that constructs a malicious class to prove the XSS, but a test case is not a weaponized exploit. The scope change (S:C / subsequent-system SC:L, SI:L) correctly reflects that the payload executes in the browser of whoever views the generated report, not in the BCEL process itself. The dominant limiting factor is the narrow trigger: an operator must deliberately run the Class2HTML utility over attacker-controlled class files and then open the resulting HTML, which is an uncommon workflow - making this genuinely low real-world risk despite the network attack vector. |
| Exploit ScenarioDerived | An attacker submits a crafted Java class file whose unknown method attribute name contains HTML/JavaScript (e.g. a '<svg onload=alert(1)>' marker in a CONSTANT_Utf8 entry) to a service or workflow that runs Apache Commons BCEL's Class2HTML to generate human-readable code reports. CodeHTML writes that attribute name into the report HTML without escaping, so when an analyst or user later opens the generated '_code.html' page in a browser the stored script executes in their session. No public exploit tool is identified; exploitation depends on the operator running the reporting tool on untrusted input and a victim viewing the output (UI:R, AC:H). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
Cross-site scripting in Apache Commons BCEL before 6.14.1: the Class2HTML reporting tool writes unknown method attribute names into generated HTML code reports without escaping, so a class file crafted with HTML metacharacters in an attribute name produces a stored XSS payload in the report. The flaw is an incomplete fix for CVE-2026-105111 and is confined to the Class2HTML/CodeHTML reporting path, not normal bytecode parsing or library embedding - exploitation requires an operator to generate a report from attacker-influenced class files and a victim to then open that report in a browser (CVSS:3.1 4.7, AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N). No public exploit was identified at time of analysis; the upstream fix commit includes a regression test that demonstrates the injection vector, and upgrading to 6.14.1 is the remediation.
RemediationAI
Vendor-released patch: upgrade Apache Commons BCEL to 6.14.1, which contains commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 that escapes unknown method attribute names via Class2HTML.toHTML before emitting them into the code report HTML. Users are recommended by the vendor to upgrade to 6.14.1 as the fix; see https://seclists.org/oss-sec/2026/q4/943 and https://github.com/apache/commons-bcel/commit/713989aa74ab97e3b82901e5b9e333d20c9da4f3 for details. Where an immediate upgrade is not possible, treat the Class2HTML output pipeline as the trust boundary: avoid running Class2HTML or CodeHTML report generation against class files from untrusted or unverified sources, and if such reports must be produced, serve or open the generated HTML in a context that cannot execute script (for example, serving it from a separate origin or viewing it in a context with scripting disabled) - at the cost that the reports remain tainted artifacts and any downstream consumer that renders them in a normal browser session is still exposed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Commons BCEL (Byte Code Engineering Library) is a Java library for parsing, editing and generating JVM class files. Its util package ships Class2HTML, a developer-facing tool that renders a JavaClass as a set of browsable HTML pages; CodeHTML is the component that writes the per-method HTML, including a list of the method's attributes. The JVM specification allows non-standard method attributes whose name is simply an index into the constant pool's CONSTANT_Utf8 entries, so the name string is arbitrary and, when the analyzed class file is attacker-supplied, fully attacker-controlled. The vulnerable code concatenated that name straight into a list item - printWriter.print("<LI>" + attributes[i] + "</LI>") - which is a textbook improper neutralization of input during web page generation (CWE-79). The bug is explicitly described as an incomplete fix for CVE-2026-105111: earlier escaping work covered other attribute/field contexts but missed this branch. The upstream commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 changes the line to pass the value through Class2HTML.toHTML(String.valueOf(attributes[i])) and adds Class2HTMLXSSTest.testUnknownMethodAttributeNameIsEscaped, which injects the marker x<svg onload="alert(1)">&'"y as an unknown attribute name and asserts the output contains the HTML-escaped form instead of a live element. Note that the underlying weakness is a rendering/escaping defect in the report generator; how an attacker gets a malicious class file in front of an operator, and whether that operator then opens the generated HTML, are outside the library itself, which is why the CVSS 3.1 vector carries AC:H and the CVSS 4.0 vector carries AT:P.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Attacker-supplied class file reaches a report generator (AV:N, PR:N) but needs the uncommon Class2HTML workflow plus victim viewing (AC:H, UI:R); stored XSS runs in the victim browser (S:C, C:L/I:L, A:N).
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
2Description PRE-NVD
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-139793
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB