CVE-2024-21537: lilconfig Code Injection vulnerability
Versions of the package lilconfig from 3.1.0 and before 3.1.1 are vulnerable to Arbitrary Code Execution due to the insecure usage of eval in the dynamicImport function. An attacker can exploit this vulnerability by passing a malicious input through the defaultLoaders function.
Published Oct 31, 2024 · Updated Nov 1, 2024
Affected packages
lilconfig
- Ecosystem
- npm
- Affected
- >= 3.1.0, < 3.1.1
- Fixed in
- 3.1.1
- Check
npm ls lilconfig
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package lilconfig from 3.1.0 and before 3.1.1 are vulnerable to Arbitrary Code Execution due to the insecure usage of eval in the dynamicImport function. An attacker can exploit this vulnerability by passing a malicious input through the defaultLoaders function.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21537
- https://github.com/antonk52/lilconfig/pull/48
- https://github.com/antonk52/lilconfig/commit/2c68a1ab8764fc74acc46771e1ad39ab07a9b0a7
- https://github.com/antonk52/lilconfig/releases/tag/v3.1.1
- https://security.snyk.io/vuln/SNYK-JS-LILCONFIG-6263789
- https://github.com/advisories/GHSA-fq9m-v26v-2m4f
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
