Skip to main content

oaskit EUVDEUVD-2026-52407

| CVE-2026-66296 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-03 EEF GHSA-5rgx-mcq5-r7wv
5.1
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim clicks crafted GET link
  2. Delivery
    Browser sends Accept: text/html
  3. Exploit
    Schema validation fails on injected object key
  4. Execution
    Error page renders unescaped instance path
  5. Persist
    Script executes in application origin
  6. Impact
    Exfiltrates 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

oaskit 552de8ca0ff60617bea58bcafa451892d61a161c <b70c6b2eaf0b11bdd0bbb21b8a87dbb3d46918a1
oaskit 0.1.0 <0.14.1

Affected Packages

euvd oaskit fix: 0.14.1

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

Vendor (EEF) PRIMARY 5.1 MEDIUM
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
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Rare
niche Elixir/Plug OpenAPI validation library, small ecosystem footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy