Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege access
-
DeliverySupply crafted question.name value
-
ExploitInvoke Enquirer.set() without sanitization
-
ExecutionPollute Object.prototype
-
ImpactAchieve limited integrity modification in process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the attacker has sufficient access (PR:L per CVSS 4.0) to supply a crafted value for the question.name argument to the Enquirer.set() function - either directly as an API consumer or indirectly through an application layer that exposes this parameter to user input. The vulnerable code path is within the Public Package API of the enquirer library; applications that do not expose question.name to external input are not exploitable. The impact is limited to low integrity modification on the vulnerable system only (VI:L, VC:N, VA:N), with no scope change to subsequent systems (SC:N/SI:N/SA:N). Exploitation is further constrained to environments running enquirer versions 2.4.0 or 2.4.1. The attack is most realistic in Node.js developer tooling, CLI wrappers, or CI/CD pipelines where this library processes externally supplied prompt configuration. |
| Impact | The CVSS 4.0 base score of 2.1 (Low) is consistent with the narrow blast radius: VI:L with no confidentiality or availability impact, and PR:L indicating the attacker must have some level of authenticated or authorized access. The E:P supplemental metric confirms the exploit is publicly available, elevating practical risk above what the score alone suggests. However, enquirer is a CLI prompt library - its attack surface is primarily developer toolchains and build environments, not externally exposed production services, which constrains real-world exploitation. EPSS data is not provided; however, given the niche deployment context and low CVSS, widespread automated exploitation is unlikely. No CISA KEV listing confirms the vulnerability has not been observed in active mass exploitation. The primary real-world risk is supply-chain or build-time integrity manipulation in CI/CD environments where enquirer is a dependency. The conflict between AV:N in the CVSS vector and enquirer's primarily local/CLI nature should be verified - network reachability may depend on how an application wraps the library. |
| Exploit ScenarioDerived | An attacker with low-privilege access to an application that passes user-supplied input to enquirer's Enquirer.set() function submits a crafted question.name value such as __proto__[isAdmin]=true. The enquirer library processes this without sanitization, writing the property into Object.prototype and polluting the shared prototype chain for the entire Node.js process. Depending on how the host application reads object properties, this may result in privilege escalation, logic bypass, or unexpected behavior in downstream code - a publicly available proof-of-concept at https://github.com/enquirer/enquirer/issues/487#issuecomment-4648521328 demonstrates the pollution mechanism. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 09, 2026
Prototype pollution in the enquirer npm package (versions up to 2.4.1) allows remote authenticated attackers to manipulate JavaScript Object.prototype attributes by injecting a crafted value into the question.name argument of the Enquirer.set() function. The vulnerability carries a low CVSS 4.0 score of 2.1, reflecting limited integrity-only impact scoped to the vulnerable system with no confidentiality or availability consequence. Publicly available exploit code exists via GitHub issue #487, though no active exploitation has been confirmed in CISA KEV.
RemediationAI
No vendor-released patched version has been identified at the time of analysis - the fix status should be monitored via the GitHub issue at https://github.com/enquirer/enquirer/issues/487 and the VulDB entry at https://vuldb.com/vuln/377113. As a compensating control, operators should validate and sanitize all inputs to Enquirer.set() to reject keys containing __proto__, constructor, or prototype before they reach the function. Alternatively, applications consuming enquirer can wrap question.name values with Object.freeze() on the prototype or use a library such as 'safe-flat' to sanitize prototype-polluting payloads at ingestion. Pinning to a version prior to confirmed affected releases (below 2.4.0) may reduce exposure but does not guarantee safety given the wildcard CPE. Developers should monitor the enquirer GitHub repository for a patched release and upgrade immediately upon availability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) describes prototype pollution - a class of vulnerability endemic to JavaScript and Node.js environments where user-controlled input is used as a property key without sanitization against __proto__, constructor, or prototype. In enquirer (CPE: cpe:2.3:a:n/a:enquirer:*:*:*:*:*:*:*:*), the Enquirer.set() function in the Public Package API processes a question.name argument that can be manipulated to write to the shared Object.prototype chain. Enquirer is a Node.js interactive CLI prompt library widely used in developer tooling and build pipelines. Prototype pollution in such a library can propagate upstream into any Node.js application that trusts properties on Object.prototype, potentially enabling property injection, logic bypass, or privilege escalation depending on how downstream code consumes affected objects.
Know when Enquirer gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Network vector retained per CVSS 4.0 source; PR:L because attacker must control question.name input; S:U and C:N/A:N because only limited local integrity impact is demonstrated.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A security flaw has been discovered in enquirer up to 2.4.1. Affected is the function Enquirer.set of the component Public Package API. The manipulation of the argument question.name results in improperly controlled modification of object prototype attributes. The attack can be launched remotely. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-42599
GHSA-5727-r6pv-59f5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB