CVE-2026-15187 enquirer Public Package API Enquirer.set prototype pollution
Remote attackers can exploit prototype pollution in Enquirer.set to execute arbitrary code or escalate privileges within applications using this library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-15187?
CVE-2026-15187 is a medium-severity code injection vulnerability in enquirer, published on 9 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2026-15187?
How do I fix CVE-2026-15187?
Upgrade to a fixed version.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-15187 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-15187 exists.
Sources
Also known as GHSA-5727-r6pv-59f5.