{"id":"CVE-2026-44294","aliases":["CVE-2026-44294","GHSA-2pr8-phx7-x9h3"],"related":[],"kind":"vulnerability","state":"published","title":"protobufjs: Denial of service from crafted field names in generated code","summary":"protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs generated JavaScript property accessors from schema-controlled field and oneof names. Certain control characters in field names were not escaped before being embedded into generated function bodies. A crafted schema or JSON descriptor could therefore cause generated encode, decode, verify, or conversion functions to fail during compilation. This vulnerability is fixed in 7.5.6 and 8.0.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs generated JavaScript property accessors from schema-controlled field and oneof names. Certain control characters in field names were not escaped before being embedded into generated function bodies. A crafted schema or JSON descriptor could therefore cause generated encode, decode, verify, or conversion functions to fail during compilation. This vulnerability is fixed in 7.5.6 and 8.0.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nprotobufjs generated JavaScript property accessors from schema-controlled field and oneof names. Certain control characters in field names were not escaped before being embedded into generated function bodies. A crafted schema or JSON descriptor could therefore cause generated encode, decode, verify, or conversion functions to fail during compilation.\n\n## Impact\n\nAn attacker who can provide or influence a protobuf schema or JSON descriptor may be able to make affected message types unusable by causing protobufjs runtime code generation to throw a syntax error.\n\nThis is a denial of service issue for applications that load untrusted schemas or descriptors. Applications that only use trusted, application-defined schemas are not directly affected by this issue.\n\nThe issue is not known to allow code execution by itself.\n\n## Preconditions\n\n- The application must allow an attacker to control or influence a protobuf schema or JSON descriptor.\n- The crafted input must define a field name containing control characters that reach generated JavaScript property access.\n- The application must perform an operation that triggers protobufjs code generation for the affected type, such as encode, decode, verify, `fromObject`, or `toObject`.\n\n## Workarounds\n\nDo not load protobuf schemas or JSON descriptors from untrusted sources with affected versions. If untrusted schemas must be accepted, validate field names before loading them and reject names containing control characters.","format":"markdown","source":"ghsa"},{"lang":"es","text":"protobufjs compila definiciones de protobuf en funciones de JavaScript (JS). Antes de 7.5.6 y 8.0.2, protobufjs generaba descriptores de acceso a propiedades de JavaScript a partir de nombres de campos y de ’oneof’ controlados por el esquema. Ciertos caracteres de control en los nombres de los campos no se escapaban antes de ser incrustados en los cuerpos de las funciones generadas. Un esquema o descriptor JSON manipulado podría, por lo tanto, causar que las funciones generadas de codificación, decodificación, verificación o conversión fallaran durante la compilación. Esta vulnerabilidad está corregida en 7.5.6 y 8.0.2.","source":"nvd"}],"published":"2026-05-12T15:06:17.000Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"< 7.5.6","status":"affected"},{"version":">= 8.0.0, < 8.0.2","status":"affected"}],"vendor":"protobufjs","product":"protobuf.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.5.6"}],"ecosystem":"npm","package":"protobufjs","purl":"pkg:npm/protobufjs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.2"}],"ecosystem":"npm","package":"protobufjs","purl":"pkg:npm/protobufjs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.5.6"},{"status":"affected","introduced":"8.0.0","fixed":"8.0.2"}],"vendor":"protobufjs_project","product":"protobufjs","cpe":"cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-2pr8-phx7-x9h3","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44294","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/protobufjs/protobuf.js","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-13T18:34:24.114Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44294","url":"https://www.cve.org/CVERecord?id=CVE-2026-44294","licence":"CVE Terms of Use","modified":"2026-05-13T18:34:31.882Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2pr8-phx7-x9h3","url":"https://github.com/advisories/GHSA-2pr8-phx7-x9h3","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.232Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44294","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44294","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.593Z","epss":{"score":0.00431,"percentile":0.39215,"date":"2026-12-01T12:00:22.000Z"}}