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

Published Nov 30, 2026
·
Updated

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.

Affected Software

1 affected component
maven/org.apache.bcel/bcel<6.14.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.14.1

Event History

Nov 30, 2026
CVE Published
via MITRE·10:22 PM
Data Sourced
via MITRE·10:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness
Event
via NVD·11:17 PM

Frequently Asked Questions

1

Who is exposed to this vulnerability?

Organizations using Apache Commons BCEL before 6.14.1 are exposed only if they use Class2HTML to generate web pages from class files that may be attacker-controlled. The affected output is a generated code report, where an unknown method attribute name can be stored without HTML escaping.

2

What must an attacker do to exploit it?

An attacker needs to supply or influence a class file processed by Class2HTML and craft an unknown method attribute name. A user must then view the generated HTML report for the stored script to execute.

3

Are typical BCEL deployments affected by default?

The issue is not described as affecting BCEL generally or merely parsing class files. It requires the specific Class2HTML report-generation workflow and potentially attacker-controlled class-file input.

4

What should be done if affected?

Upgrade Apache Commons BCEL to version 6.14.1. If an immediate upgrade is not possible, avoid generating Class2HTML pages from untrusted class files and do not serve previously generated reports as active HTML to users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203