Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. module-from-string
  4. ›
  5. CVE-2024-57072

CVE-2024-57072: module-from-string prototype pollution

February 6, 2025

A prototype pollution in the lib.requireFromString function of module-from-string v3.3.1 allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.

References

  • gist.github.com/tariqhawis/8b1fe301dd1ea52952cef347daddee67
  • github.com/advisories/GHSA-q5j8-9m9g-x2jh
  • github.com/exuanbo/module-from-string
  • nvd.nist.gov/vuln/detail/CVE-2024-57072

Code Behaviors & Features

Detect and mitigate CVE-2024-57072 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.3.1

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/module-from-string/CVE-2024-57072.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:59 +0000.