CVE-2026-105111: Apache Commons BCEL: Class2HTML emits unescaped class strings, enabling stored XSS

Published Oct 6, 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 Class2HTML emitters write attacker class-file strings into HTML unescaped (stored XSS in reports).

This issue affects Apache Commons BCEL: before 6.13.0.

Users are recommended to upgrade to version 6.13.0, which fixes the issue.

Affected Software

1 affected component
Apache Commons BCEL<6.13.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Commons BCEL to a version that resolves this vulnerability.

    Fixed in 6.13.0

Event History

Oct 6, 2026
CVE Published
via MITRE·07:44 PM
Data Sourced
via MITRE·07:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Organizations using Apache Commons BCEL versions before 6.13.0 are exposed only if they use Class2HTML to generate web pages from class files that may be controlled by an attacker. The generated reports can contain stored cross-site scripting payloads.

2

What must an attacker do to exploit it?

An attacker needs to supply a crafted class file whose string values are included in Class2HTML output. A user must then view the generated HTML page for the script to execute.

3

Is a default BCEL installation affected?

The issue is conditional on use of the Class2HTML webpage-generation feature with potentially attacker-controlled class files. The provided information does not indicate that ordinary BCEL use without Class2HTML report generation is affected.

4

What is the remediation?

Upgrade Apache Commons BCEL to version 6.13.0. This version fixes the unescaped class-string output in Class2HTML.

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