oRPC
oRPC: Stored XSS in OpenAPI Reference Plugin via unescaped JSON.stringify
oRPC is an tool that helps build APIs that are end-to-end type-safe and adhere to OpenAPI standards. Prior to version 1.13.9, a stored cross-site scripting (XSS) vulnerability exists in the OpenAPI documentation generation of orpc. If an attacker can control any field within the OpenAPI specification (such as info.description), they can break out of the JSON context and execute arbitrary JavaScript when a user views the generated API documentation. This issue has been patched in version 1.13.9.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.13.9
Fixed in 1.13.9
Mitigation
Upgrade orpc to 1.13.9 or later.
References
- Vendor advisory github.com/middleapi/orpc/security/advisories/…
- Patch github.com/middleapi/orpc/commit/4f0efa8a1d3fa…
- Release notes github.com/middleapi/orpc/releases/tag/v1.13.9
Timeline
Days relative to CVE publicationFirst public PoC 11 days after publication; not in CISA KEV. First PoC: abhayclasher/CVE-2026-33331 (created 4 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| abhayclasher/CVE-2026-33331 | 4 Apr 2026 +11 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 1 PoC repoGET /docs
- Ports
- 3000
- Seen in
- 1 repo: abhayclasher/CVE-2026-33331
- Evidence
- abhayclasher/CVE-2026-33331/app/server.js:117 abhayclasher/CVE-2026-33331/README.md:99
GET /api/spec
- Ports
- 3000
- Seen in
- 1 repo: abhayclasher/CVE-2026-33331
- Evidence
- abhayclasher/CVE-2026-33331/poc/exploit.js:4 abhayclasher/CVE-2026-33331/poc/exploit.js:53
GET /spec.json
- Ports
- 3000
- Seen in
- 1 repo: abhayclasher/CVE-2026-33331
- Evidence
- abhayclasher/CVE-2026-33331/app/server.js:119 abhayclasher/CVE-2026-33331/README.md:101
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/docs(?:[?#].*)?$
(?i)^/api/spec(?:[?#].*)?$
(?i)^/spec\.json(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-33331 middleapi orpc exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/docs"; reference:url,poc.griffinguard.io/cve/CVE-2026-33331; classtype:web-application-attack; sid:9048304; rev:1;)
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-33331 middleapi orpc exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/spec"; reference:url,poc.griffinguard.io/cve/CVE-2026-33331; classtype:web-application-attack; sid:9017569; rev:1;)
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-33331 middleapi orpc exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/spec.json"; reference:url,poc.griffinguard.io/cve/CVE-2026-33331; classtype:web-application-attack; sid:9852948; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: middleapi orpc exploit attempt (CVE-2026-33331)
id: gg-pocmon-cve-2026-33331-9048304
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-33331. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-33331
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/docs'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.33331
title: middleapi orpc exploit attempt (CVE-2026-33331)
id: gg-pocmon-cve-2026-33331-9017569
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-33331. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-33331
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/spec'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.33331
title: middleapi orpc exploit attempt (CVE-2026-33331)
id: gg-pocmon-cve-2026-33331-9852948
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-33331. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-33331
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/spec.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.33331