Cross-site scripting in Apache Commons BCEL - CVE-2026-138277

 

Cross-site scripting in Apache Commons BCEL - CVE-2026-138277

Published: December 6, 2026


Vulnerability identifier: #VU173999
CSH Severity: Medium
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-138277
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary script in a victim's browser when the victim views a generated code report.

The vulnerability exists due to improper escaping of unknown method attribute names in the Class2HTML CodeHTML component when generating HTML reports from Java class files. A remote attacker can supply a crafted class file to inject script into the generated report and execute it in the report's browser context when a victim views it.


Affected software

Apache Commons BCEL

How to mitigate CVE-2026-138277

Install security update from vendor's website.

Apache Commons BCEL - update to 6.14.1

External References

Related Security Bulletins