Skip to main content

Apache Commons BCEL CVE-2026-138277

| EUVDEUVD-2026-139793 LOW
Cross-site Scripting (XSS) (CWE-79)
2.3
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft class file with scripted attribute name
  2. Delivery
    Submit to Class2HTML report workflow
  3. Exploit
    Unescaped name stored in generated HTML
  4. Execution
    Victim opens code report in browser
  5. Impact
    Script 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).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Apache Commons BCEL 96ac0670cf9944d4912ab25ec885a4bea651443d <713989aa74ab97e3b82901e5b9e333d20c9da4f3
Apache Commons BCEL 0 <6.14.1

Affected Packages

euvd apache_commons_bcel fix: 6.14.1

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

Vendor (CNA) PRIMARY 2.3 LOW
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
vuln.today AI 4.7 MEDIUM

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

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 02:01 EUVD
CVSS changed
Nov 30, 2026 - 23:22 NVD
2.3 (LOW)

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Medium
common Java bytecode library, but Class2HTML reporting utility is rarely used
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy