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.
PUBLISHED5.2CWE-1321
apidoc-core - prototype pollution in api_group.js, api_param_title.js, api_use.js, and api_permission.js worker
Problem type
Affected products
apiDoc
apidoc-core
< * - AFFECTED
References
JSON source
https://cveawg.mitre.org/api/cve/CVE-2025-13158Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2025-13158",
"assignerOrgId": "103e4ec9-0a87-450b-af77-479448ddef11",
"assignerShortName": "Sonatype",
"dateUpdated": "2025-12-26T19:26:12.935Z",
"dateReserved": "2025-11-13T23:20:13.984Z",
"datePublished": "2025-12-26T16:00:27.208Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "103e4ec9-0a87-450b-af77-479448ddef11",
"shortName": "Sonatype",
"dateUpdated": "2025-12-26T16:55:08.039Z"
},
"title": "apidoc-core - prototype pollution in api_group.js, api_param_title.js, api_use.js, and api_permission.js worker",
"descriptions": [
{
"lang": "en",
"value": "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.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "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."
}
]
}
],
"affected": [
{
"vendor": "apiDoc",
"product": "apidoc-core",
"repo": "https://github.com/apidoc/apidoc-core",
"defaultStatus": "unaffected",
"versions": [
{
"version": "0.2.0",
"status": "affected",
"versionType": "semver",
"lessThan": "*"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')",
"cweId": "CWE-1321",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://www.sonatype.com/security-advisories/cve-2025-13158",
"tags": [
"third-party-advisory"
]
}
],
"metrics": [
{
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"credits": [
{
"lang": "en",
"value": "James Montaño of the Sonatype Security Research Team",
"type": "finder"
}
]
},
"adp": [
{
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-12-26T19:26:12.935Z"
},
"title": "CISA ADP Vulnrichment",
"metrics": [
{}
]
}
]
}
}