MODERATE 4.7

CVE-2026-138277

Apache Commons BCEL: Class2HTML emits unescaped unknown method attribute names in code reports

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

Description

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.bcel » bcelpreliminary
< 6.14.1
6.14.1

Blast radius

1affected artifacts
29affected versions
1,725dependent artifacts (est.)
33,952dependent versions

72% of the dependent artifacts (1,246) still pull an affected version in their latest release.

DepthDependent versions
Direct
4,354
2 hops
8,861
3 hops
5,434
4 hops
6,659
5 hops
4,769
6 hops
3,875

Most used dependents

Computed from the dependency graph of build 20261129.2353 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.