{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2v29"
                  },
                  {
                    "last_affected": "2v29"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "fixed": "54983bbe8f3c3fed46e5416c9e60bf00bbc98137"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "6106910b8a3dc1253e3f8388a68d068f4c71fadf"
            },
            {
              "last_affected": "6106910b8a3dc1253e3f8388a68d068f4c71fadf"
            },
            {
              "fixed": "54983bbe8f3c3fed46e5416c9e60bf00bbc98137"
            }
          ],
          "repo": "https://github.com/espruino/espruino",
          "type": "GIT"
        }
      ],
      "versions": [
        "2v29"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-119",
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138304.json"
  },
  "details": "A security vulnerability has been detected in Espruino up to 2v29. Affected by this issue is the function matchhere of the file src/jswrap_regexp.c of the component RegExp Engine. The manipulation leads to out-of-bounds write. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used. The identifier of the patch is 54983bbe8f3c3fed46e5416c9e60bf00bbc98137. It is recommended to apply a patch to fix this issue.",
  "id": "CVE-2026-138304",
  "modified": "2026-11-29T19:45:48.242894851Z",
  "published": "2026-11-29T18:30:15.683Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138304.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/espruino/Espruino/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/espruino/Espruino/commit/54983bbe8f3c3fed46e5416c9e60bf00bbc98137"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/espruino/Espruino/issues/2775"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138304"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/cve/CVE-2026-138304"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/1074812"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/445128"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/445128/cti"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Espruino RegExp jswrap_regexp.c matchhere out-of-bounds write"
}