Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-33331: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in middleapi orpc

0
High
VulnerabilityCVE-2026-33331cvecve-2026-33331cwe-79
Published: Tue Mar 24 2026 (03/24/2026, 19:18:00 UTC)
Source: CVE Database V5
Vendor/Project: middleapi
Product: orpc

Description

CVE-2026-33331 is a high-severity stored cross-site scripting (XSS) vulnerability affecting versions of the middleapi orpc tool prior to 1. 13. 9. The vulnerability arises from improper neutralization of input in the OpenAPI documentation generation, allowing attackers who can control fields in the OpenAPI specification (e. g. , info. description) to inject malicious JavaScript. When a user views the generated API documentation, the injected script executes, potentially compromising confidentiality by stealing sensitive data. Exploitation requires no authentication but does require user interaction (viewing the documentation). This vulnerability has been patched in version 1.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/24/2026, 20:01:18 UTC

Technical Analysis

The vulnerability identified as CVE-2026-33331 is a stored cross-site scripting (XSS) flaw in the middleapi orpc tool, specifically in versions prior to 1.13.9. orpc is a tool designed to build APIs that are end-to-end type-safe and compliant with OpenAPI standards, including automatic generation of API documentation. The flaw exists in the process of generating OpenAPI documentation, where user-controllable fields within the OpenAPI specification—such as the info.description field—are not properly sanitized or neutralized before being embedded into the JSON context of the documentation page. This improper input handling allows an attacker who can supply or manipulate these fields to inject arbitrary JavaScript code. When a legitimate user accesses the generated API documentation, the malicious script executes in their browser context, leading to a stored XSS attack. The vulnerability is classified under CWE-79, indicating improper neutralization of input during web page generation. The CVSS v3.1 base score is 8.2, reflecting a high severity due to network attack vector, low attack complexity, no privileges required, but requiring user interaction. The impact is primarily on confidentiality, with limited integrity impact and no availability impact. The vulnerability has been addressed and patched in orpc version 1.13.9. There are no known exploits in the wild as of the publication date.

Potential Impact

This vulnerability poses a significant risk to organizations using orpc versions prior to 1.13.9 for API development and documentation. Successful exploitation can lead to the execution of arbitrary JavaScript in the context of the API documentation viewer's browser, potentially exposing sensitive information such as authentication tokens, session cookies, or other confidential data accessible via the browser. This can facilitate further attacks like session hijacking, phishing, or unauthorized access to backend systems. Since the attack requires no authentication and can be triggered simply by viewing the compromised documentation, the attack surface is broad, especially in environments where API documentation is publicly accessible or shared widely among developers and partners. The scope includes any organization leveraging orpc for API documentation generation, which may include software development firms, enterprises with internal or external APIs, and cloud service providers. The lack of availability impact means systems remain operational, but confidentiality breaches can have severe business and compliance consequences. The absence of known exploits in the wild suggests proactive patching can prevent exploitation.

Mitigation Recommendations

Organizations should immediately upgrade orpc to version 1.13.9 or later, where this vulnerability has been patched. Until upgrading is possible, restrict access to the OpenAPI documentation generated by orpc to trusted users only, minimizing exposure to potential attackers. Implement strict input validation and sanitization on all fields within the OpenAPI specification, especially those that can be user-controlled, to prevent injection of malicious scripts. Employ Content Security Policy (CSP) headers on the documentation web pages to restrict execution of unauthorized scripts and reduce the impact of potential XSS attacks. Regularly audit and review API documentation content for unexpected or suspicious inputs. Educate developers and API consumers about the risks of interacting with untrusted API documentation sources. Monitor logs and network traffic for unusual activity related to API documentation access. Finally, integrate security testing into the API development lifecycle to detect similar vulnerabilities early.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-18T22:15:11.811Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69c2ea08f4197a8e3b6b6429

Added to database: 3/24/2026, 7:46:16 PM

Last enriched: 3/24/2026, 8:01:18 PM

Last updated: 3/24/2026, 9:03:08 PM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses