Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS0zM3ZoLTd4OHEtbWczNc4AAwbl

safe-eval vulnerable to Prototype Pollution

All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.

Permalink: https://github.com/advisories/GHSA-33vh-7x8q-mg35
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zM3ZoLTd4OHEtbWczNc4AAwbl
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 1 year ago
Updated: about 1 year ago


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

Identifiers: GHSA-33vh-7x8q-mg35, CVE-2022-25904
References: Repository: https://github.com/hacksparrow/safe-eval
Blast Radius: 33.7

Affected Packages

npm:safe-eval
Dependent packages: 264
Dependent repositories: 2,730
Downloads: 113,629 last month
Affected Version Ranges: <= 0.4.1
No known fixed version
All affected versions: 0.0.0, 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1