{"answers":{"affected":"2 open source packages ship an affected version, including re2js.","exploited":"There is no known exploitation of CVE-2026-116795 in the wild and no public exploit code.","fix":"Upgrade re2js to 2.8.7 or later.","what":"CVE-2026-116795 is a high-severity vulnerability in le0pard re2js, published on 28 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-116795 and fix it if it is affected.\n\nWhat it is: CVE-2026-116795 is a high-severity vulnerability in le0pard re2js, published on 28 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-116795 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- re2js (npm): affected from 2.2.0; fixed in 2.8.7\n- re2js (npm): affected from 2.2.0; fixed in 2.8.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-116795/ (Markdown: https://insights.sbomify.com/CVE-2026-116795/index.md)","id":"CVE-2026-116795","markdown":"https://insights.sbomify.com/CVE-2026-116795/index.md","name":"CVE-2026-116795","record":{"aliases":["ECHO-3abd-6fdf-e676","GHSA-gg6h-894w-4m9c"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching. From 2.2.0 until 2.8.7, enabling LOOKBEHINDS and using repeated matching through matcher().find(), matchAll(), split(), or matcher().replaceAll() can cause quadratic total work. Machine.match restarts lookbehind scanning from offset zero for each requested start position, while Matcher-based APIs request capture slots that prevent the early exit used for captureless matching. Dense matches therefore repeatedly rescan the input, allowing attacker-influenced text to monopolize a single-threaded worker and deny service. This issue is fixed in version 2.8.7.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"RE2JS: Quadratic-time denial of service in re2js lookbehind matching","id":"CVE-2026-116795","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Highcharts Core: `javascript:` URL in an `xlink:href` attribute survives text filtering and reaches exported charts","id":"CVE-2026-116796"},"packages":[{"ecosystem":"npm","fixed":["2.8.7"],"introduced":["2.2.0"],"last_affected":[],"package":"re2js","purl":null,"source":"GHSA-gg6h-894w-4m9c"},{"ecosystem":"npm","fixed":["2.8.7"],"introduced":["2.2.0"],"last_affected":[],"package":"re2js","purl":"pkg:npm/re2js","source":"GHSA-gg6h-894w-4m9c"}],"prev":{"headline":"russh is a Rust SSH client and server library that includes an SSH agent protocol implementation.","id":"CVE-2026-116794"},"products":["re2js"],"published":"2026-10-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-10-28","vendors":["le0pard"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-116795/"}