CVE-2026-33331
oRPC: Stored XSS in OpenAPI Reference Plugin via unescaped JSON.stringify
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.
INFO
Published Date :
March 24, 2026, 8:16 p.m.
Last Modified :
March 26, 2026, 1:26 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update oRPC to version 1.13.9 or newer.
- Sanitize user-controlled input in OpenAPI specifications.
- Validate all fields within the OpenAPI specification.
- Review documentation generation for XSS risks.
Public PoC/Exploit Available at Github
CVE-2026-33331 has a 2 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-33331.
| URL | Resource |
|---|---|
| https://github.com/middleapi/orpc/commit/4f0efa8a1d3fa8e8317a4b03cc3945a5dfd68add | Patch |
| https://github.com/middleapi/orpc/releases/tag/v1.13.9 | Product Release Notes |
| https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8 | Exploit Mitigation Vendor Advisory |
| https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8 | Exploit Mitigation Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-33331 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-33331
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Proof-of-concept lab for stored XSS in orpc (CVE-2026-33331)
Dockerfile JavaScript
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-33331 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-33331 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 26, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:orpc:orpc:*:*:*:*:*:*:*:* versions up to (excluding) 1.13.9 Added Reference Type GitHub, Inc.: https://github.com/middleapi/orpc/commit/4f0efa8a1d3fa8e8317a4b03cc3945a5dfd68add Types: Patch Added Reference Type GitHub, Inc.: https://github.com/middleapi/orpc/releases/tag/v1.13.9 Types: Product, Release Notes Added Reference Type GitHub, Inc.: https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8 Types: Exploit, Mitigation, Vendor Advisory Added Reference Type CISA-ADP: https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8 Types: Exploit, Mitigation, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Mar. 25, 2026
Action Type Old Value New Value Added Reference https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8 -
New CVE Received by [email protected]
Mar. 24, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N Added CWE CWE-79 Added Reference https://github.com/middleapi/orpc/commit/4f0efa8a1d3fa8e8317a4b03cc3945a5dfd68add Added Reference https://github.com/middleapi/orpc/releases/tag/v1.13.9 Added Reference https://github.com/middleapi/orpc/security/advisories/GHSA-7f6v-3gx7-27q8