oRPC: Stored XSS in OpenAPI Reference Plugin via unescaped JSON.stringify
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| middleapi | orpc | before 1.13.9 | 1.13.9 | Patch available | CNA |
| — | @orpc/openapi (npm) | before 1.13.9 | 1.13.9 | Patch available | GHSA-7f6v-3gx7-27q8 |
- orpc Vendormiddleapi Affected before 1.13.9 Fixed in 1.13.9 Patch available CNA
- @orpc/openapi (npm) Vendor— Affected before 1.13.9 Fixed in 1.13.9 Patch available GHSA-7f6v-3gx7-27q8
Remediation
- Fix · CNA orpc (middleapi) Fixed in 1.13.9
- Fix · GHSA-7f6v-3gx7-27q8 @orpc/openapi (npm) Fixed in 1.13.9 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-33331
- 2026-10-03 Alias added: GHSA-7f6v-3gx7-27q8
References
More middleapi vulnerabilities
- TI-2026-53979 oRPC: Vary Header Injection in CORS Plugin leading to potential Cache/CORS Bypass CVSS 4.0MEDIUM 6.3
- TI-2026-66040 @orpc/zod: Prototype injection in smart coercion CVSS 3.1MEDIUM 6.5
- TI-2026-66014 @orpc/json-schema: Prototype injection in smart coercion CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-33331 · CVE Program
- CVE-2026-33331 · NVD
- FIRST EPSS
- GHSA-7f6v-3gx7-27q8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences