Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Apache

CVE-2026-138277 — Apache Software Foundation Apache Commons BCEL

Low · CVSS 2.3 First seen November 30, 2026
ApacheWebVulnerabilities

Research article

Apache Commons BCEL Class2HTML stored cross-site scripting (CVE-2026-138277) in releases before 6.14.1

CVECVE-2026-138277
Vendor and productApache Software Foundation Apache Commons BCEL
PublishedNovember 30, 2026 20:35 UTC
Research cut-offNovember 30, 2026 20:30 UTC
Sources reviewed2: 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

FieldValue
CVE IDCVE-2026-138277 [2]
Project and productApache Commons BCEL, Class2HTML tool, CodeHTML component [2]
Publication and last-modified datesNot published in the reviewed sources
CWE classificationNot published in the reviewed sources; the advisory describes improper neutralization of input during web page generation [2]
CVSS 3.14.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.02.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 identifiersCVE-2026-105111, which this issue is described as an incomplete fix for [2]; fix commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 [2]
CISA KEV statusNot 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

  1. Class2HTML reads a Java class file and generates HTML documentation from it [2].
  2. The CodeHTML component processes the method attributes in that class file [2].
  3. For attributes it does not recognize, CodeHTML writes the attribute names into the output HTML [2].
  4. The names are written without escaping, so markup inside an attribute name reaches the generated page as markup rather than text [2].
  5. 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

PrerequisiteEvidence
Network accessAV:N in both vectors [2]
AuthenticationPR:N in both vectors, so no privileges are required [2]
User interactionUI:R in CVSS 3.1 and UI:P in CVSS 4.0 [2]
Attack complexityAC:H in CVSS 3.1 [2]; AC:L with AT:P in CVSS 4.0 [2]
Required featureClass2HTML must be used to generate pages [2]
Required inputClass 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 propertyCVSS 3.1 [2]CVSS 4.0 [2]Note
ConfidentialityC:LVC:N, SC:LThe 4.0 score counts a low subsequent-system impact
IntegrityI:LVI:N, SI:LScripted content in a generated page can alter what the viewer sees
AvailabilityA:NVA:N, SA:NNo availability impact scored
ScopeS:Cnot applicableThe 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

ProductAffectedFixedSource and qualification
Apache Commons BCELReleases before 6.14.1 [2]6.14.1 [2]Stated in the advisory text
Apache Commons BCEL source buildsCommits 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

  1. Find every project that depends on Apache Commons BCEL and record the resolved version; any release before 6.14.1 is affected [2].
  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]).
  3. Upgrade Apache Commons BCEL to 6.14.1 [2].
  4. Verify the upgrade by checking that the resolved commons-bcel version in each dependency tree is 6.14.1 [2].
  5. For projects that build BCEL from source, confirm the build includes fix commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3 [2].
  6. 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]).
  7. Confirm that the remediation for CVE-2026-105111 is also in place, since this issue is described as an incomplete fix for it [2].
  8. Check the NVD record for CVE-2026-138277 for status, CWE and scores before closing the ticket, because the pack does not contain it.
  9. 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

  1. 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. CVE-2026-138277 is not listed in the CISA KEV catalog as of 2026-11-30; absence is not evidence of no exploitation.
  2. Vendor bulletin page (seclists.org). seclists.org. https://seclists.org/oss-sec/2026/q4/943. Accessed 2026-11-30. Affected versions (before 6.14.1 and the commit range), fixed version 6.14.1, fix commit, CVSS 3.1 and 4.0 scores and vectors, the flaw description and mechanics, the Class2HTML prerequisite, the reporter and remediation developer, and the incomplete fix relationship to CVE-2026-105111.

Written with AI assistance from the 2 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Low · 2.3 CVSS 4.0 base score 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.

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

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 4.7 from the CNA (apache.org): CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected and fixed versions

ProductAffected versionsFixed in
Apache Software Foundation Apache Commons BCEL< 6.14.16.14.1
Apache Software Foundation Apache Commons BCEL< 6.14.16.14.1

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

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

References

Related vulnerabilities & news