Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim clicks crafted GET link
-
DeliveryBrowser sends Accept: text/html
-
ExploitSchema validation fails on injected object key
-
ExecutionError page renders unescaped instance path
-
PersistScript executes in application origin
-
ImpactExfiltrates cookies or session tokens
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target application must be running oaskit 0.1.0 through 0.14.0 with Oaskit.Plugs.ValidateRequest present in its Plug pipeline - this is the default configuration described in oaskit's documentation, so no explicit opt-in beyond standard usage is required. The :html_errors option must be true (the default) and the :error_handler must be Oaskit.ErrorHandler.Default (the default). For the instance-path injection vector, the targeted endpoint must accept GET requests with object-typed or deepObject query parameters (or POST requests with object-typed bodies) governed by a JSON Schema that includes additionalProperties: false, so that an unexpected key triggers a validation error whose instance path reflects the key. For the Content-Type injection vector, the endpoint must accept POST/PUT requests where an unparseable Content-Type triggers an unsupported-media-type error. The victim must navigate to the crafted URL in a browser - ordinary top-level navigation automatically sends Accept: text/html, so no special action from the victim beyond clicking a link is required. Exploitation is limited to applications built on Elixir/Plug that have integrated this specific library. |
| Impact | The CVSS 4.0 score of 5.1 (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N) correctly captures the attack profile: network-accessible, low complexity, no privileges required, but requiring active victim interaction (UI:A), with impact only on the subsequent system - the victim's browser context. The primary severity constraint is user interaction: the victim must navigate to a crafted link. However, this is the standard phishing or malicious-link delivery model, which is well within attacker capability and should not be treated as a strong mitigating factor for applications with a user base. The critical risk amplifier is that the vulnerable configuration is the default: Oaskit.Plugs.ValidateRequest ships with :html_errors true and :error_handler set to the vulnerable default, meaning no special deployment or opt-in is required to be exposed. No EPSS data is available in the provided intelligence. The vulnerability is not listed in CISA KEV. Overall real-world risk is moderate for any Elixir/Plug application using oaskit - the attack is straightforward once a target is identified - but the niche deployment footprint of the library significantly limits total exposure. |
| Exploit ScenarioDerived | An attacker crafts a GET URL targeting any endpoint protected by oaskit's ValidateRequest plug, embedding an XSS payload as an object key in a query parameter - for example, /api/items?filter[</code></h2><script>alert(document.domain)</script>]=x - then delivers it to a victim via a phishing message or malicious link. When the victim's browser navigates to the URL, it automatically includes Accept: text/html; the schema validation rejects the unexpected key under additionalProperties: false, and the error page reflects the unescaped key in the JSON Schema instance path. The injected script executes in the target application's origin, giving the attacker access to that origin's cookies, session storage, and same-origin responses. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 03, 2026
Reflected XSS in oaskit (Elixir/Plug OpenAPI request-validation library) versions 0.1.0 through 0.14.0 allows an unauthenticated remote attacker to execute arbitrary JavaScript in a victim's browser by inducing them to navigate to a crafted GET URL. The default HTML error handler interpolates request-controlled strings - object keys from query parameters or request bodies that appear in JSON Schema instance paths, and the raw Content-Type header - directly into HTML error pages without escaping. Both HTML error rendering and the vulnerable handler are enabled by default, so all applications following documented oaskit usage are exposed without any opt-in configuration; no public exploit tool is identified at time of analysis, though the advisory contains a working payload example demonstrating trivial exploitability.
RemediationAI
Upgrade oaskit to version 0.14.1 or later; the fix is confirmed in commit b70c6b2 (https://github.com/lud/oaskit/commit/b70c6b2eaf0b11bdd0bbb21b8a87dbb3d46918a1), which applies Plug.HTML.html_escape/1 to all request-derived values before HTML interpolation. Consult the official advisory at https://github.com/lud/oaskit/security/advisories/GHSA-h7xw-x8wr-xpcc for upgrade guidance. If an immediate upgrade is not possible, the most effective workaround is to disable HTML error rendering by setting the :html_errors option to false on Oaskit.Plugs.ValidateRequest - this fully eliminates the vulnerable code path, though browser clients will no longer receive human-readable HTML validation error pages. As an alternative, replacing the :error_handler option with a custom implementation that does not render HTML bypasses the vulnerable default handler entirely. Both workarounds trade away error-page ergonomics for browser clients but completely mitigate the injection risk.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Oaskit is an Elixir library integrating with the Plug web framework to validate HTTP requests against OpenAPI 3.x specifications. The vulnerable code resides in Oaskit.ErrorHandler.Default (lib/oaskit/error_handler/default.ex), specifically the format_reason/4 and reason_to_html/1 functions. When request validation fails and the request's Accept header contains 'html', the handler renders an HTML error page. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): object keys from request bodies or deepObject/object-typed query parameters appear in JSON Schema instance paths when additionalProperties: false rejects them, and the raw Content-Type header is reflected in unsupported-media-type errors - both are interpolated into the HTML response via Elixir string templates without HTML escaping. The fix in commit b70c6b2 introduces a private esc/1 helper wrapping Plug.HTML.html_escape/1 and applies it to every request-derived interpolation site across the template. The affected CPE is cpe:2.3:a:lud:oaskit:*:*:*:*:*:*:*:*.
Know when Oaskit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Network-delivered reflected XSS requiring victim browser navigation (UI:R); scope changes to browser context (S:C); low confidentiality and integrity impact on victim's session data.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in lud oaskit allows reflected cross-site scripting via the default HTML error handler.
Oaskit.ErrorHandler.Default.format_reason/4 and Oaskit.ErrorHandler.Default.reason_to_html/1 in lib/oaskit/error_handler/default.ex render request-validation failures as an HTML page whenever the request's Accept header contains html, interpolating request-controlled strings into that page without HTML escaping. The unescaped values are object keys taken from a request body or from an object or deepObject query parameter, which appear in the JSON Schema error's instance path when a schema rejects them (for example under additionalProperties: false), and the raw Content-Type header, reflected in unsupported-media-type errors when it fails to parse.
Because browsers send Accept: text/html on ordinary top-level navigation, a crafted GET link is sufficient to trigger the error page; no form submission, custom Content-Type, or attacker-controlled script on the victim's side is required. A payload such as filter[</code></h2><script>alert(document.domain)</script>]=x terminates the enclosing markup and the injected script executes in the origin of the application using oaskit, giving it access to that origin's cookies, session, and same-origin responses.
Both HTML error rendering and the vulnerable handler are enabled by default: Oaskit.Plugs.ValidateRequest defaults :html_errors to true and :error_handler to Oaskit.ErrorHandler.Default, so applications following the documented usage are affected without any opt-in.
This issue affects oaskit: from 0.1.0 before 0.14.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-52407
GHSA-5rgx-mcq5-r7wv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB