CVE-2026-54271
Full vulnerability record from the local CVENow database.
Description
protobufjs-cli is the command line add-on for protobuf.js. Prior to 1.3.2 and 2.5.0, a previous fix for unsafe name handling in pbjs static / static-module code generation was incomplete. Affected versions of protobufjs-cli could still emit unsafe JavaScript references when generating static output from crafted JSON descriptor input. The common case of parsing schemas from .proto files is not affected. This is a bypass of CVE-2026-44295. An attacker who can provide or influence pre-parsed JSON descriptors passed to pbjs static code generation may be able to cause generated JavaScript output to contain attacker-controlled code. The injected code may execute if the generated file is later executed or imported and an affected generated API path is invoked. This vulnerability is fixed in 1.3.2 and 2.5.0.
View original CVE JSON
{
"id": "CVE-2026-54271",
"sourceIdentifier": "[email protected]",
"published": "2026-06-22T18:16:45.610",
"lastModified": "2026-10-25T23:10:00.167",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "protobufjs-cli is the command line add-on for protobuf.js. Prior to 1.3.2 and 2.5.0, a previous fix for unsafe name handling in pbjs static / static-module code generation was incomplete. Affected versions of protobufjs-cli could still emit unsafe JavaScript references when generating static output from crafted JSON descriptor input. The common case of parsing schemas from .proto files is not affected. This is a bypass of CVE-2026-44295. An attacker who can provide or influence pre-parsed JSON descriptors passed to pbjs static code generation may be able to cause generated JavaScript output to contain attacker-controlled code. The injected code may execute if the generated file is later executed or imported and an affected generated API path is invoked. This vulnerability is fixed in 1.3.2 and 2.5.0."
},
{
"lang": "es",
"value": "protobufjs-cli es el complemento de línea de comandos para protobuf.js. Antes de 1.3.2 y 2.5.0, una corrección anterior para el manejo inseguro de nombres en la generación de código estático / de módulo estático de pbjs estaba incompleta. Las versiones afectadas de protobufjs-cli aún podían emitir referencias JavaScript inseguras al generar salida estática a partir de una entrada de descriptor JSON manipulada. El caso común de análisis de esquemas desde archivos .proto no se ve afectado. Esto es una omisión de CVE-2026-44295. Un atacante que puede proporcionar o influir en descriptores JSON pre-analizados pasados a la generación de código estático de pbjs podría ser capaz de hacer que la salida JavaScript generada contenga código controlado por el atacante. El código inyectado podría ejecutarse si el archivo generado se ejecuta o importa posteriormente y se invoca una ruta de API generada afectada. Esta vulnerabilidad está corregida en 1.3.2 y 2.5.0."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "protobufjs",
"product": "protobufjs-cli",
"versions": [
{
"version": "< 1.3.2",
"status": "affected"
},
{
"version": ">= 2.0.0, < 2.4.2",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "CHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "LOW"
},
"exploitabilityScore": 1.6,
"impactScore": 6.0
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-06-23T13:48:57.561501Z",
"id": "CVE-2026-54271",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:*",
"versionEndExcluding": "1.3.2",
"matchCriteriaId": "7453A64C-E2A4-43AA-944C-9445D660FB19"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:*",
"versionStartIncluding": "2.0.0",
"versionEndExcluding": "2.5.0",
"matchCriteriaId": "789C6C99-BDE5-4FD9-A95D-4BE0EB3DF8C1"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-pr59-h9ph-3fr8",
"source": "[email protected]",
"tags": [
"Mitigation",
"Vendor Advisory"
]
}
]
}