{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "110206bb126a80071158fb0e2e3d7cc658f2bfe4"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "4b26e04c396253e704ad8e41b928d9e31316f62e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "110206bb126a80071158fb0e2e3d7cc658f2bfe4"
            },
            {
              "fixed": "4b26e04c396253e704ad8e41b928d9e31316f62e"
            }
          ],
          "repo": "https://github.com/keichi/binary-parser",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-xmxc-6c22-m377"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134814.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "2.3.1"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "2.3.1"
              }
            ],
            "source": "CPE_FIELD",
            "strategy": "CPEApplicability"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "2.3.1"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "binary-parser before 2.3.1 contains a code injection vulnerability that allows attackers controlling parser definitions to inject JavaScript through string-typed options passed unvalidated by Context.generateOption(). Attackers can supply crafted length, lengthInBytes, key, tag, offset, or namely() alias values to execute arbitrary JavaScript in the Node.js process when the parser is compiled.",
  "id": "CVE-2026-134814",
  "modified": "2026-11-22T22:46:01.857083784Z",
  "published": "2026-11-22T21:22:15.654Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134814.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/keichi/binary-parser"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/keichi/binary-parser/blob/v2.3.0/lib/binary_parser.ts#L26-L35"
    },
    {
      "type": "FIX",
      "url": "https://github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4"
    },
    {
      "type": "FIX",
      "url": "https://github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-134814"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "binary-parser before 2.3.1 Code Injection via String-Typed Parser Options"
}