Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. morgan-json
  4. ›
  5. CVE-2022-25921

CVE-2022-25921: Improper Control of Generation of Code ('Code Injection')

August 29, 2022 (updated August 8, 2023)

All versions of package morgan-json is vulnerable to Arbitrary Code Execution due to missing sanitization of input passed to the Function constructor.

References

  • github.com/indexzero/morgan-json/blob/3a76010215a4256d41687d082cd66c4f00ea5717/index.js%23L46
  • nvd.nist.gov/vuln/detail/CVE-2022-25921
  • security.snyk.io/vuln/SNYK-JS-MORGANJSON-2976193

Code Behaviors & Features

Detect and mitigate CVE-2022-25921 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

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Source file

npm/morgan-json/CVE-2022-25921.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:10 +0000.