Bug 2587653 (CVE-2026-138277)

Summary: CVE-2026-138277 bcel: org.apache.bcel/bcel: Apache Commons BCEL: Cross-site scripting via unescaped class attribute names in HTML generation
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in Apache Commons BCEL. A remote attacker could exploit this issue by providing a specially crafted Java class file containing malicious method attribute names to the HTML report generation utility. If a user views the resulting HTML report, the unescaped input can lead to a cross-site scripting (XSS) attack, enabling unauthorized code execution within the user's browser.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-30 22:31:38 UTC
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.