CVE-2026-138277 — Apache Software Foundation Apache Commons BCEL
Research article
Apache Commons BCEL Class2HTML stored cross-site scripting (CVE-2026-138277) in releases before 6.14.1
| CVE | CVE-2026-138277 |
|---|---|
| Vendor and product | Apache Software Foundation Apache Commons BCEL |
| Published | November 30, 2026 20:35 UTC |
| Research cut-off | November 30, 2026 20:30 UTC |
| Sources reviewed | 2: CISA KEV catalog; vendor advisory page (seclists.org) |
Executive summary
CVE-2026-138277 is a stored cross-site scripting flaw in the Class2HTML tool of Apache Commons BCEL, which writes unrecognized method attribute names from class files into generated HTML without escaping [2]. The publisher scores it 4.7 (medium) under CVSS 3.1 with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, and 2.3 (low) under CVSS 4.0 with vector 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, while the advisory text calls it low severity [2]. Releases before 6.14.1 are affected, and the advisory describes this issue as an incomplete fix for CVE-2026-105111 [2]. Exploitation requires that Class2HTML build pages from class files an attacker may control, and the injected script is stored in the generated output [2]. The vulnerability is not listed in the CISA KEV catalog as of 2026-11-30 [1], and the pack contains no exploitation reports or proof of concept. The most important immediate action is to upgrade Apache Commons BCEL to 6.14.1 [2], and until then to stop passing untrusted class files to Class2HTML [2].
Key points
- CVE-2026-138277 is a stored cross-site scripting flaw in Apache Commons BCEL Class2HTML, where unrecognized method attribute names are written into generated HTML unescaped [2].
- The publisher scores it 4.7 (medium) under CVSS 3.1 and 2.3 (low) under CVSS 4.0, and the advisory text says low severity [2].
- Releases before 6.14.1 are affected; the fix is version 6.14.1 [2].
- Exploitation requires Class2HTML to process attacker-controlled class files [2].
- Not listed in CISA KEV as of 2026-11-30; no exploitation reports or proof of concept are in the pack [1].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-138277 [2] |
| Project and product | Apache Commons BCEL, Class2HTML tool, CodeHTML component [2] |
| Publication and last-modified dates | Not published in the reviewed sources |
| CWE classification | Not published in the reviewed sources; the advisory describes improper neutralization of input during web page generation [2] |
| CVSS 3.1 | 4.7, medium; CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N; scored by the publisher as stated in [2] |
| CVSS 4.0 | 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; scored by the publisher as stated in [2] |
| Related identifiers | CVE-2026-105111, which this issue is described as an incomplete fix for [2]; fix commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 [2] |
| CISA KEV status | Not listed as of 2026-11-30 [1] |
The two CVSS scores differ in both value and severity band. The advisory text states low severity, yet its own CVSS 3.1 score of 4.7 falls in the medium band [2].
Vulnerability description
The flaw is a cross-site scripting issue, meaning that content supplied by one party is rendered as active script in another party's browser. Here the injection is stored: the attacker's content is written into a generated HTML page, so it persists in that file [2]. The flaw only arises when Class2HTML builds web pages from class files that an attacker may control [2]. The advisory states that reports can therefore carry script injection [2].
Technical mechanics
- Class2HTML reads a Java class file and generates HTML documentation from it [2].
- The CodeHTML component processes the method attributes in that class file [2].
- For attributes it does not recognize, CodeHTML writes the attribute names into the output HTML [2].
- The names are written without escaping, so markup inside an attribute name reaches the generated page as markup rather than text [2].
- A user who opens the generated page receives the injected script in their browser, because the injection is stored in the file [2].
Root cause (Confirmed): the advisory attributes the issue to improper neutralization of input during web page generation, specifically the missing escaping of unrecognized attribute names in CodeHTML [2]. Analyst assessment: because the advisory calls this an incomplete fix for CVE-2026-105111 [2], the earlier change probably escaped some output paths but not this one. The pack does not contain the code change to confirm this.
Attack surface and exploitation prerequisites
| Prerequisite | Evidence |
|---|---|
| Network access | AV:N in both vectors [2] |
| Authentication | PR:N in both vectors, so no privileges are required [2] |
| User interaction | UI:R in CVSS 3.1 and UI:P in CVSS 4.0 [2] |
| Attack complexity | AC:H in CVSS 3.1 [2]; AC:L with AT:P in CVSS 4.0 [2] |
| Required feature | Class2HTML must be used to generate pages [2] |
| Required input | Class files that an attacker may control [2] |
The Class2HTML prerequisite comes from the advisory text [2]. The network and privilege values come from the vectors [2] and show only the scorer's view, not a confirmed attack path. The pack does not describe how an attacker would deliver a class file to a target's pipeline.
Impact analysis
| Security property | CVSS 3.1 [2] | CVSS 4.0 [2] | Note |
|---|---|---|---|
| Confidentiality | C:L | VC:N, SC:L | The 4.0 score counts a low subsequent-system impact |
| Integrity | I:L | VI:N, SI:L | Scripted content in a generated page can alter what the viewer sees |
| Availability | A:N | VA:N, SA:N | No availability impact scored |
| Scope | S:C | not applicable | The 3.1 vector treats the impact as crossing a security boundary |
The vectors describe scorer estimates, not demonstrated effects. The advisory does not describe what a script could reach in a viewer's browser, so consequences beyond the scores are analyst assessment only.
Affected products and versions
| Product | Affected | Fixed | Source and qualification |
|---|---|---|---|
| Apache Commons BCEL | Releases before 6.14.1 [2] | 6.14.1 [2] | Stated in the advisory text |
| Apache Commons BCEL source builds | Commits from 96ac0670cf9944d4912ab25ec885a4bea651443d up to 713989aa74ab97e3b82901e5b9e333d20c9da4f3 [2] | Fix commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 [2] | Commit boundaries are not mapped to release numbers in the pack |
Exploitation and threat intelligence status
CISA does not list CVE-2026-138277 in the KEV catalog as of 2026-11-30 [1]. The pack contains no exploitation report, threat actor attribution or public proof of concept. Absence from KEV is not evidence that the flaw has not been exploited [1].
Remediation
Immediate mitigation (derived from the documented behaviour in [2], not a vendor measure): stop using Class2HTML to process class files from untrusted sources. This removes the input condition that the advisory identifies [2]. Verify it by searching build and generation scripts for Class2HTML invocations and confirming that none reads externally supplied class files.
Permanent fix (vendor-confirmed): upgrade Apache Commons BCEL to 6.14.1 [2]. The fix is in commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 [2]. Verify the upgrade by confirming that the resolved commons-bcel version in the dependency tree of each affected project is 6.14.1, and by confirming the fix commit for projects that build BCEL from source [2]. Treat HTML pages generated before the upgrade from untrusted class files as suspect and regenerate them after the upgrade (analyst recommendation).
Remediation checklist
- Find every project that depends on Apache Commons BCEL and record the resolved version; any release before 6.14.1 is affected [2].
- Search build and generation scripts for Class2HTML use; where it reads class files from untrusted sources, stop that path until the upgrade is complete (mitigation derived from the behaviour in [2]).
- Upgrade Apache Commons BCEL to 6.14.1 [2].
- Verify the upgrade by checking that the resolved commons-bcel version in each dependency tree is 6.14.1 [2].
- For projects that build BCEL from source, confirm the build includes fix commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 [2].
- Regenerate HTML pages created from untrusted class files before the upgrade, and review them for script or markup in method attribute names (analyst recommendation based on [2]).
- Confirm that the remediation for CVE-2026-105111 is also in place, since this issue is described as an incomplete fix for it [2].
- Check the NVD record for CVE-2026-138277 for status, CWE and scores before closing the ticket, because the pack does not contain it.
- Recheck the CISA KEV catalog for CVE-2026-138277 periodically [1].
Evidence gaps
- Not established by the reviewed sources: the NVD record status, publication date and last-modified date; the NVD record for CVE-2026-138277 would settle this.
- Not established by the reviewed sources: a CWE classification for CVE-2026-138277; the CVE record or NVD entry would settle this.
- Not established by the reviewed sources: that the advisory names CVE-2026-138277 in its text; the advisory text does not name it and the CVE is linked only through the reference list [2]. The Apache advisory or CVE record would confirm the mapping.
- Not established by the reviewed sources: the primary Apache advisory; the pack has only a seclists.org copy whose date is not stated [2].
- Not established by the reviewed sources: affected release versions for source builds, because the commit range is not mapped to releases; Apache release notes or the repository history would settle this.
- Not established by the reviewed sources: details of the incomplete fix for CVE-2026-105111 and whether 6.14.1 fully covers all Class2HTML output paths; the CVE-2026-105111 record and the fix diff would settle this.
- Not established by the reviewed sources: the code change itself, so the root cause is limited to the advisory description; the commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 diff would settle this.
- Not established by the reviewed sources: what a script injected this way can access in a viewer's browser or on the server; a technical analysis of the generated page would settle this.
- Not established by the reviewed sources: any exploitation reports, threat actors or public proof of concept.
- Not established by the reviewed sources: an EPSS score; the FIRST EPSS record would settle this.
- Not established by the reviewed sources: any indicators of compromise; none are given in the pack.
- Not established by the reviewed sources: which scorer produced the CVSS scores and how the advisory's low severity label relates to the 4.7 medium CVSS 3.1 score; the advisory and the scoring record would settle this.
References
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-30. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-30.
- Vendor bulletin page (seclists.org). seclists.org. https://seclists.org/oss-sec/2026/q4/943. Accessed 2026-11-30.
Summary
Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Apache Commons BCEL. This only happens when you're using Class2HTML to generate webpages for possibly-attacker-controlled class files, where CodeHTML writes attacker-controlled unknown method attribute names into the generated HTML without escaping (stored XSS in reports). This issue is caused by an incomplete fix for CVE-2026-105111 https://www.cve.org/CVERecord . This issue affects Apache Commons BCEL: before 6.14.1. Users are recommended to upgrade to version 6.14.1, which fixes the issue.
Severity breakdown
Low · 2.3
An attacker without an account can exploit this over the network if a user views or visits something, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- none
- Impact on other systems
- low on confidentiality and integrity, none on availability
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Commons BCEL | < 6.14.1 | 6.14.1 |
| Apache Software Foundation Apache Commons BCEL | < 6.14.1 | 6.14.1 |
References by type
Patches and fixed releases
Other references
Affected
- Apache Software Foundation Apache Commons BCEL
Frequently asked questions
What is CVE-2026-138277?
CVE-2026-138277 is a stored cross-site scripting flaw in the Class2HTML tool of Apache Commons BCEL, which writes unrecognized method attribute names from class files into generated HTML without escaping. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-138277?
CVE-2026-138277 has a CVSS 4.0 base score of 2.3 (low), from the CNA (apache.org). An attacker without an account can exploit this over the network if a user views or visits something, but only under specific conditions.
Is CVE-2026-138277 being exploited?
Not as far as is known: CVE-2026-138277 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026.
Which versions are affected by CVE-2026-138277?
Apache Software Foundation Apache Commons BCEL < 6.14.1 (fixed in 6.14.1); Apache Software Foundation Apache Commons BCEL < 6.14.1 (fixed in 6.14.1).
How do I fix CVE-2026-138277?
Find every project that depends on Apache Commons BCEL and record the resolved version; any release before 6.14.1 is affected. Search build and generation scripts for Class2HTML use; where it reads class files from untrusted sources, stop that path until the upgrade is complete (mitigation derived from the behaviour in). Upgrade Apache Commons BCEL to 6.14.1.
Timeline & sources
- oss-security: CVE-2026-138277: Apache Commons BCEL: Class2HTML emits unescaped unknown method attribute names in code reports
- NVD: CVE-2026-138277 — Apache Software Foundation Apache Commons BCEL
References
Related vulnerabilities & news
- Apache OpenOffice Flaw CVE-2026-90640 Lets Crafted Documents Read Local Files
- New Open-Source Tool Scans Projects for Quantum-Vulnerable and Weak Encryption
- CVE-2026-105966 — Apache Software Foundation Apache Camel
- Apache Camel netty-http CVE-2026-105968: partial role matching enables unauthorized route access
- Apache Camel camel-undertow flaw lets unauthenticated clients bypass WebSocket authorization