CVE-2025-13158 apidoc-core - prototype pollution in api_group.js, api_param_title.js, api_use.js, and api_permission.js worker
Remote attackers can pollute JavaScript object prototypes via malformed data, causing denial of service or unintended behavior in applications using apidoc-core.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-13158?
CVE-2025-13158 is a critical vulnerability in apidoc-core, published on 26 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Prototype pollution vulnerability in apidoc-core versions 0.2.0 and all subsequent versions allows remote attackers to modify JavaScript object prototypes via malformed data structures, including the “define” property processed by the application, potentially leading to denial of service or unintended behavior in applications relying on the integrity of prototype chains. This affects the preProcess() function in api_group.js, api_param_title.js, api_use.js, and api_permission.js worker modules.
Weakness: CWE-1321
Which versions are affected by CVE-2025-13158?
2 open source packages ship an affected version, including apidoc-core.
| Package | Affected | Fixed in |
|---|---|---|
apidoc-core npm | From 0.2.0 to 0.15.0 | None |
apidoc-core npm | From 0.2.0 to 0.15.0 | None |
How do I fix CVE-2025-13158?
No fix has been published for CVE-2025-13158 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-13158 being exploited?
There is no known exploitation of CVE-2025-13158 in the wild and no public exploit code.
Sources
Also known as GHSA-6vj3-p34w-xxjp.