# CVE-2026-138277: Apache Commons BCEL: Class2HTML emits unescaped unknown method attribute names in code reports

- Severity: Low 2.3 (CVSS:4.0, scored by apache) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-11-30T22:22:52.301Z
- Modified: 2026-11-30T23:17:23.157Z
- Weaknesses: CWE-79
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- org.apache.bcel:bcel: before 6.14.1
- Apache Software Foundation Apache Commons BCEL: before 6.14.1; from 96ac0670cf9944d4912ab25ec885a4bea651443d before 713989aa74ab97e3b82901e5b9e333d20c9da4f3

## Every score

- apache: 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`
- apache: 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`

## References

- <https://github.com/apache/commons-bcel/commit/713989aa74ab97e3b82901e5b9e333d20c9da4f3> (patch)
- <https://www.cve.org/CVERecord?id=CVE-2026-105111> (related)
- <https://lists.apache.org/thread.html/nd45lnplbs4mzfppqmypz3wf7gszh2w2> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-138277](https://www.cve.org/CVERecord?id=CVE-2026-138277), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138277](https://nvd.nist.gov/vuln/detail/CVE-2026-138277), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138277 · Whole record: https://cve.day/CVE-2026-138277.json · Rebuilt by cve.day 2026-11-30T23:32:36.065Z
