{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "96ac0670cf9944d4912ab25ec885a4bea651443d"
                  },
                  {
                    "fixed": "713989aa74ab97e3b82901e5b9e333d20c9da4f3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "96ac0670cf9944d4912ab25ec885a4bea651443d"
            },
            {
              "fixed": "713989aa74ab97e3b82901e5b9e333d20c9da4f3"
            }
          ],
          "repo": "https://gitbox.apache.org/repos/asf/commons-bcel.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "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": [
          {
            "range": [
              {
                "fixed": "6.14.1"
              },
              {
                "fixed": "6.14.1"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      }
    ]
  },
  "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.",
  "id": "CVE-2026-138277",
  "modified": "2026-11-30T23:46:06.463079579Z",
  "published": "2026-11-30T22:22:52.301Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Apache Commons BCEL: Class2HTML emits unescaped unknown method attribute names in code reports"
}