{"id":"GHSA-8h55-q5qq-p685","summary":"(ReDoS) Regular Expression Denial of Service in tf2-item-format","details":"## Summary\n\nVersions of `tf2-item-format` since at least `4.2.6` are vulnerable to a Regular Expression Denial of Service (ReDoS) attack when parsing crafted user input. \n\n## Tested Versions\n\n- `5.9.13`\n- `5.8.10`\n- `5.7.0`\n- `5.6.17`\n- `4.3.5`\n- `4.2.6`\n\n### v5\nUpgrade package to `^5.9.14`\n\n### v4\nNo patch exists. Please consult the [v4 to v5 migration guide](https://github.com/danocmx/node-tf2-item-format?tab=readme-ov-file#migrating-from-v4-to-v5) to upgrade to v5.\n\nIf upgrading to v5 is not possible, fork the module repository and implement the fix detailed below.\n\n## Impact\n\nThis vulnerability can be exploited by an attacker to perform DoS attacks on any service that uses any `tf2-item-format` to parse user input.","aliases":["CVE-2024-41655"],"modified":"2024-07-23T15:51:54Z","published":"2024-07-23T14:10:45Z","database_specific":{"cwe_ids":["CWE-1333","CWE-624"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-07-23T14:10:45Z","nvd_published_at":"2024-07-23T15:15:05Z"},"references":[{"type":"WEB","url":"https://github.com/danocmx/node-tf2-item-format/security/advisories/GHSA-8h55-q5qq-p685"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41655"},{"type":"WEB","url":"https://github.com/danocmx/node-tf2-item-format/commit/5cffcc16a9261d6a937bda72bfe6830e02e31eec"},{"type":"PACKAGE","url":"https://github.com/danocmx/node-tf2-item-format"},{"type":"WEB","url":"https://github.com/danocmx/node-tf2-item-format/releases/tag/v5.9.14"}],"affected":[{"package":{"name":"tf2-item-format","ecosystem":"npm","purl":"pkg:npm/tf2-item-format"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.2.6"},{"fixed":"5.9.14"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 5.9.13","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-8h55-q5qq-p685/GHSA-8h55-q5qq-p685.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}