Apache Commons BCEL Class2HTML Flaw CVE-2026-138277 Enables Stored XSS; Fixed in 6.14.1
According to the oss-security mailing list, CVE-2026-138277 is an incomplete fix for CVE-2026-105111 in Apache Commons BCEL's Class2HTML tool, which can lead to stored cross-site scripting in generated code reports. Users are advised to upgrade to BCEL 6.14.1.
ApacheWebVulnerabilitiesKey points
- CVE-2026-138277 is an incomplete fix for CVE-2026-105111 in Apache Commons BCEL.
- Unescaped method attribute names in Class2HTML output can enable stored XSS in generated reports.
- Affected: BCEL before 6.14.1, plus a listed development commit range.
- Fixed in Apache Commons BCEL 6.14.1.
According to oss-security, CVE-2026-138277 affects Apache Commons BCEL. The flaw is in the CodeHTML output of Class2HTML, which writes unknown method attribute names into generated HTML without escaping them.
The report says this can lead to stored cross-site scripting in generated code reports when Class2HTML is run on attacker-controlled class files. The entry describes CVE-2026-138277 as an incomplete fix for CVE-2026-105111.
Affected versions are Apache Commons BCEL before 6.14.1. A development commit range, from 96ac0670cf9944d4912ab25ec885a4bea651443d through 713989aa74ab97e3b82901e5b9e333d20c9da4f3, is also listed as affected. The fix is commit 713989aa74ab97e3b82901e5b9e333d20c9da4f3, and the remediation was developed by Gary D. Gregory. The issue was reported by a researcher credited as hataehoon.
The report gives a CVSS 3.1 base score of 4.7 (medium) and a CVSS 4.0 score of 2.3 (low). The outlet labels the severity as low, so the two scoring systems and the stated label do not line up neatly. Readers should check the CVE records for the official scoring.
The original report and its links to the CVE records are available on the oss-security list.
What to do
- Upgrade Apache Commons BCEL to version 6.14.1 or later.
- Check whether any development builds from the listed commit range are in use and update them.
- Review the CVE records for CVE-2026-105111 and CVE-2026-138277 for official scoring details.
Original report
“CVE-2026-138277: Apache Commons BCEL: Class2HTML emits unescaped unknown method attribute names in code reports”
Posted by Gary D. Gregory on Nov 30 Severity: low 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 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 Affected versions: - Apache Commons BCEL before 6.14.1 - Apache Commons BCEL before 6.14.1 - Apache Commons BCEL 96ac0670cf9944d4912ab25ec885a4bea651443d before 713989aa74ab97e3b82901e5b9e333d20c9d…
Vulnerabilities mentioned
- 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