Search
Find a vulnerability
Search criteria
2 vulnerabilities found for re2js by le0pard
CVE-2026-116795 (GCVE-0-2026-116795)
Vulnerability from nvd – Published: 2026-10-28 17:14 – Updated: 2026-10-28 17:14
VLAI
EPSS
VEX
Title
RE2JS: Quadratic-time denial of service in re2js lookbehind matching
Summary
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.
Severity
7.5 (High)
CWE
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/le0pard/re2js/security/advisor… | x_refsource_CONFIRM |
| https://github.com/le0pard/re2js/pull/59 | x_refsource_MISC |
| https://github.com/le0pard/re2js/commit/dfdd94778… | x_refsource_MISC |
| https://github.com/le0pard/re2js/releases/tag/2.8.7 | x_refsource_MISC |
{
"containers": {
"cna": {
"affected": [
{
"product": "re2js",
"vendor": "le0pard",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.2.0, \u003c 2.8.7"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-407",
"description": "CWE-407: Inefficient Algorithmic Complexity",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333: Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-28T17:14:15.988Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/le0pard/re2js/security/advisories/GHSA-gg6h-894w-4m9c",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/le0pard/re2js/security/advisories/GHSA-gg6h-894w-4m9c"
},
{
"name": "https://github.com/le0pard/re2js/pull/59",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/le0pard/re2js/pull/59"
},
{
"name": "https://github.com/le0pard/re2js/commit/dfdd947785dfa113bdc97416375c246a39458395",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/le0pard/re2js/commit/dfdd947785dfa113bdc97416375c246a39458395"
},
{
"name": "https://github.com/le0pard/re2js/releases/tag/2.8.7",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/le0pard/re2js/releases/tag/2.8.7"
}
],
"source": {
"advisory": "GHSA-gg6h-894w-4m9c",
"discovery": "UNKNOWN"
},
"title": "RE2JS: Quadratic-time denial of service in re2js lookbehind matching"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-116795",
"datePublished": "2026-10-28T17:14:15.988Z",
"dateReserved": "2026-10-26T21:53:35.168Z",
"dateUpdated": "2026-10-28T17:14:15.988Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-116795 (GCVE-0-2026-116795)
Vulnerability from cvelistv5 – Published: 2026-10-28 17:14 – Updated: 2026-10-28 17:14
VLAI
EPSS
VEX
Title
RE2JS: Quadratic-time denial of service in re2js lookbehind matching
Summary
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.
Severity
7.5 (High)
CWE
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/le0pard/re2js/security/advisor… | x_refsource_CONFIRM |
| https://github.com/le0pard/re2js/pull/59 | x_refsource_MISC |
| https://github.com/le0pard/re2js/commit/dfdd94778… | x_refsource_MISC |
| https://github.com/le0pard/re2js/releases/tag/2.8.7 | x_refsource_MISC |
{
"containers": {
"cna": {
"affected": [
{
"product": "re2js",
"vendor": "le0pard",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.2.0, \u003c 2.8.7"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-407",
"description": "CWE-407: Inefficient Algorithmic Complexity",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333: Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-28T17:14:15.988Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/le0pard/re2js/security/advisories/GHSA-gg6h-894w-4m9c",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/le0pard/re2js/security/advisories/GHSA-gg6h-894w-4m9c"
},
{
"name": "https://github.com/le0pard/re2js/pull/59",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/le0pard/re2js/pull/59"
},
{
"name": "https://github.com/le0pard/re2js/commit/dfdd947785dfa113bdc97416375c246a39458395",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/le0pard/re2js/commit/dfdd947785dfa113bdc97416375c246a39458395"
},
{
"name": "https://github.com/le0pard/re2js/releases/tag/2.8.7",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/le0pard/re2js/releases/tag/2.8.7"
}
],
"source": {
"advisory": "GHSA-gg6h-894w-4m9c",
"discovery": "UNKNOWN"
},
"title": "RE2JS: Quadratic-time denial of service in re2js lookbehind matching"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-116795",
"datePublished": "2026-10-28T17:14:15.988Z",
"dateReserved": "2026-10-26T21:53:35.168Z",
"dateUpdated": "2026-10-28T17:14:15.988Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}