{"id":"GHSA-q5f6-qxm2-mcqm","summary":"tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability","details":"## Summary\n\nA potential Regular Expression Denial of Service (ReDoS) vulnerability was identified in tarteaucitron.js in the handling of the `issuu_id` parameter. \n\n## Details\n\nThe issue was caused by the use of insufficiently constrained regular expressions applied to attacker-controlled input:\n\n    if (issuu_id.match(/\\d+\\/\\d+/)) {\n        issuu_embed = '#' + issuu_id;\n    } else if (issuu_id.match(/d=(.*)&u=(.*)/)) {\n        issuu_embed = '?' + issuu_id;\n    }\n\nThese expressions are not anchored and rely on greedy patterns (`.*`). When evaluated against specially crafted input, they may cause excessive backtracking, leading to high CPU consumption and potential denial of service.\n\n## Impact\n\nAn attacker able to control the `issuu_id` parameter could exploit this vulnerability to degrade performance or cause temporary service unavailability through CPU exhaustion.\n\nNo confidentiality or integrity impact was identified.\n\n## Fix https://github.com/AmauriC/tarteaucitron.js/commit/f0bbdac2fdf3cd24a325fc0928c0d34abf1b7b52\n\nThe logic was simplified and hardened by removing ambiguous regular expressions and enforcing strict input validation:\n\n    if (issuu_id.match(/^\\d+\\/\\d+$/)) {\n        issuu_embed = '#' + issuu_id;\n    } else {\n        issuu_embed = '?' + issuu_id;\n    }\n\nThis change eliminates the risk of catastrophic backtracking and prevents ReDoS conditions.\n\nAdditionally, code related to the legacy \"Alexa Rank\" service was removed. This service, historically provided by Alexa.com via browser toolbars and popularity rankings, has been deprecated for several years and is no longer operational. The Alexa domain is now exclusively associated with the Amazon voice assistant, and the original ranking service has been permanently discontinued.","aliases":["CVE-2026-22809"],"modified":"2026-02-03T02:59:54.570606Z","published":"2026-01-13T20:35:28Z","database_specific":{"nvd_published_at":"2026-01-13T20:16:11Z","cwe_ids":["CWE-1333"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-01-13T20:35:28Z"},"references":[{"type":"WEB","url":"https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-q5f6-qxm2-mcqm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22809"},{"type":"WEB","url":"https://github.com/AmauriC/tarteaucitron.js/commit/f0bbdac2fdf3cd24a325fc0928c0d34abf1b7b52"},{"type":"PACKAGE","url":"https://github.com/AmauriC/tarteaucitron.js"}],"affected":[{"package":{"name":"tarteaucitronjs","ecosystem":"npm","purl":"pkg:npm/tarteaucitronjs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.29.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-q5f6-qxm2-mcqm/GHSA-q5f6-qxm2-mcqm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"}]}