{"id":"CVE-2026-138277","summary":"Apache Commons BCEL: Class2HTML emits unescaped unknown method attribute names in code reports","details":"Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Apache Commons BCEL.\n\n\n\nThis 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 .\n\n\n\nThis issue affects Apache Commons BCEL: before 6.14.1.\n\n\n\nUsers are recommended to upgrade to version 6.14.1, which fixes the issue.","modified":"2026-12-01T00:00:10.535365627Z","published":"2026-11-30T22:22:52.301Z","database_specific":{"cna_assigner":"apache","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138277.json","unresolved_ranges":[{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"fixed":"6.14.1"},{"fixed":"6.14.1"}]}]}]},"references":[{"type":"PACKAGE","url":"https://gitbox.apache.org/repos/asf/commons-bcel.git"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138277.json"},{"type":"FIX","url":"https://github.com/apache/commons-bcel/commit/713989aa74ab97e3b82901e5b9e333d20c9da4f3"},{"type":"ADVISORY","url":"https://lists.apache.org/thread.html/nd45lnplbs4mzfppqmypz3wf7gszh2w2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138277"},{"type":"WEB","url":"https://repo.maven.apache.org/maven2"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-105111"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitbox.apache.org/repos/asf/commons-bcel.git","events":[{"introduced":"96ac0670cf9944d4912ab25ec885a4bea651443d"},{"fixed":"713989aa74ab97e3b82901e5b9e333d20c9da4f3"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"96ac0670cf9944d4912ab25ec885a4bea651443d"},{"fixed":"713989aa74ab97e3b82901e5b9e333d20c9da4f3"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["rel/commons-bcel-6.13.0","commons-bcel-6.13.0-RC1","rel/commons-bcel-6.8.1","commons-bcel-6.8.1-RC1","rel/commons-bcel-6.8.0","commons-bcel-6.8.0-RC1","rel/commons-bcel-6.6.0","commons-bcel-6.6.0-RC1","rel/commons-bcel-6.5.0","commons-bcel-6.5.0-RC1","rel/commons-bcel-6.4.1","commons-bcel-6.4.1-RC1","rel/commons-bcel-6.4.0","commons-bcel-6.4.0-RC2","commons-bcel-6.4.0-RC1","commons-bcel-6.3.1","commons-bcel-6.3.1-RC1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138277.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}