EEF-CVE-2026-66296

Source
https://cna.erlef.org/osv/EEF-CVE-2026-66296.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-66296.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-66296
Aliases
Published
2026-08-03T19:04:30.556Z
Modified
2026-08-03T19:26:48.690101963Z
Severity
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Reflected XSS in oaskit's default HTML error handler
Details

Summary

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.

Workaround

Disable HTML error rendering so that validation failures are returned as JSON only:

plug Oaskit.Plugs.ValidateRequest, html_errors: false

This prevents the vulnerable HTML page from being rendered at all, on any oaskit version. Alternatively, configure a custom :error_handler that does not emit HTML built from request-derived values.

Database specific
{
    "cpe_ids": [
        "cpe:2.3:a:lud:oaskit:*:*:*:*:*:elixir:*:*"
    ],
    "cwe_ids": [
        "CWE-79"
    ],
    "capec_ids": [
        "CAPEC-591"
    ]
}
References
Credits
    • Ludovic Dem - FINDER
    • Ludovic Dem - REMEDIATION_DEVELOPER
    • Jonatan Männchen / EEF - ANALYST

Affected packages

Hex / oaskit

Package

Name
oaskit
Purl
pkg:hex/oaskit

Affected ranges

Type
SEMVER
Events
Introduced
0.1.0
Fixed
0.14.1

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.2.0
0.3.0
0.3.1
0.4.0
0.4.1
0.5.0
0.5.1
0.6.0
0.7.0
0.8.0
0.9.0
0.9.1
0.10.0
0.10.1
0.11.0
0.12.0
0.13.0
0.13.1
0.13.2
0.14.0

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-66296.json"

Git / github.com/lud/oaskit

Affected ranges

Type
GIT
Repo
https://github.com/lud/oaskit
Events

Affected versions

v0.*
v0.1.0
v0.1.1
v0.1.2
v0.10.0
v0.10.1
v0.11.0
v0.12.0
v0.13.0
v0.13.1
v0.13.2
v0.14.0
v0.2.0
v0.3.0
v0.3.1
v0.4.0
v0.4.1
v0.5.0
v0.5.1
v0.6.0
v0.7.0
v0.8.0
v0.9.0
v0.9.1

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-66296.json"