Cross-site scripting in Apache Commons BCEL - CVE-2026-138277
Published: December 6, 2026
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.