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

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-20T17:25:56.000Z
- Modified: 2026-06-17T10:37:20.020Z
- Also known as: GHSA-7f6v-3gx7-27q8
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- middleapi orpc: < 1.13.9
- @orpc/openapi (npm): before 1.13.9
- orpc orpc: before 1.13.9

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/middleapi/orpc/commit/4f0efa8a1d3fa8e8317a4b03cc3945a5dfd68add> (patch, web)
- <https://github.com/middleapi/orpc/releases/tag/v1.13.9> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33331> (advisory)
- <https://github.com/middleapi/orpc> (package)

## Sources

- CVE List: [CVE-2026-33331](https://www.cve.org/CVERecord?id=CVE-2026-33331), CVE Terms of Use, modified 2026-03-25
- GitHub Advisory Database: [GHSA-7f6v-3gx7-27q8](https://github.com/advisories/GHSA-7f6v-3gx7-27q8), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33331](https://nvd.nist.gov/vuln/detail/CVE-2026-33331), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33331 · Whole record: https://cve.day/CVE-2026-33331.json · Rebuilt by cve.day 2026-11-25T22:59:16.605Z
