Protobufjs protobuf.js
protobufjs has an arbitrary code execution issue
protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1, 7.5.5, and 6.11.6, attackers can inject arbitrary code in the "type" fields of protobuf definitions, which will then execute during object decoding using that definition. Versions 8.0.1, 7.5.5, and 6.11.6 patch the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7.0.0, < 7.5.5
- >= 8.0.0-experimental, < 8.0.1
- < 6.11.6
Fixed in 7.5.5, 8.0.1, 6.11.6
Mitigation
Upgrade protobuf.js to 7.5.5 or 8.0.1 or 6.11.6 or later.
References
- Vendor advisory github.com/protobufjs/protobuf.js/security/adv…
- Patch github.com/protobufjs/protobuf.js/commit/08691…
- Patch github.com/protobufjs/protobuf.js/commit/535df…
3 more
Timeline
Days relative to CVE publicationFirst public PoC 8 days after publication; not in CISA KEV. First PoC: 4chech/CVE-2026-41242 (created 26 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 4chech/CVE-2026-41242 | 26 Apr 2026 +8 d | 0 | PoC |
| Giangdurian/CVE-2026-41242 | 7 Aug 2026 +111 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /api/process
- Body markers
"schema""nested""TestMessage""fields""value""type":"string""id""typeName":"TestMessage""data""Test;With(Special)Chars""typeName":"Test;With(Special)Chars""typeName"inapplication/json- Ports
- 3000
- Seen in
- 1 repo: Giangdurian/CVE-2026-41242
- Evidence
- Giangdurian/CVE-2026-41242/REPORT.md:425 Giangdurian/CVE-2026-41242/REPORT.md:459 Giangdurian/CVE-2026-41242/REPORT.md:512
GET /such_path
- Ports
- 8080
- Seen in
- 1 repo: 4chech/CVE-2026-41242
- Evidence
- 4chech/CVE-2026-41242/node_modules/router/README.md:358
PATCH /api/set-message
- Body markers
"value":"Cats!"inapplication/json- Ports
- 8080
- Seen in
- 1 repo: 4chech/CVE-2026-41242
- Evidence
- 4chech/CVE-2026-41242/node_modules/router/README.md:306
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/process(?:[?#].*)?$
(?i)^/such_path(?:[?#].*)?$
(?i)^/api/set-message(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-41242 protobufjs protobuf.js exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/process"; http.request_body; content:"|22|schema|22|"; http.request_body; content:"|22|nested|22|"; http.request_body; content:"|22|TestMessage|22|"; http.request_body; content:"|22|fields|22|"; http.request_body; content:"|22|value|22|"; http.request_body; content:"|22|type|22|:|22|string|22|"; http.request_body; content:"|22|id|22|"; http.request_body; content:"|22|typeName|22|:|22|TestMessage|22|"; http.request_body; content:"|22|data|22|"; http.request_body; content:"|22|Test|3b|With(Special)Chars|22|"; http.request_body; content:"|22|typeName|22|:|22|Test|3b|With(Special)Chars|22|"; http.request_body; content:"|22|typeName|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-41242; classtype:web-application-attack; sid:9370779; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-41242 protobufjs protobuf.js exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/such_path"; reference:url,poc.griffinguard.io/cve/CVE-2026-41242; classtype:web-application-attack; sid:9408644; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-41242 protobufjs protobuf.js exploit attempt"; flow:established,to_server; http.method; content:"PATCH"; http.uri; content:"/api/set-message"; http.request_body; content:"|22|value|22|:|22|Cats!|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-41242; classtype:web-application-attack; sid:9477188; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: protobufjs protobuf.js exploit attempt (CVE-2026-41242)
id: gg-pocmon-cve-2026-41242-9370779
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-41242. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-41242
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/process'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.41242
title: protobufjs protobuf.js exploit attempt (CVE-2026-41242)
id: gg-pocmon-cve-2026-41242-9408644
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-41242. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-41242
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/such_path'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.41242
title: protobufjs protobuf.js exploit attempt (CVE-2026-41242)
id: gg-pocmon-cve-2026-41242-9477188
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-41242. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-41242
logsource:
category: webserver
detection:
selection:
cs-method: PATCH
cs-uri-stem|contains|all:
- '/api/set-message'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.41242