CVE-2026-66296
Reflected XSS in oaskit's default HTML error handler
Check your servers for CVE-2026-66296
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-66296 affects oaskit, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality low, integrity low, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.37%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.7% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 3 Aug 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
oaskit
package
oaskit |
affected from 0.1.0, before 0.14.1
Other versions: unaffected
|
|
oaskit
package
lud/oaskit |
affected from 552de8ca0ff60617bea58bcafa451892d61a161c, before b70c6b2eaf0b11bdd0bbb21b8a87dbb3d46918a1
Other versions: unaffected
|
Is my server affected?
Find the installed version of oaskit and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i oaskit
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-66296 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-66296RHEL, Rocky, Alma, Fedora
rpm -q oaskit
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-66296Alpine
apk list --installed | grep -i oaskitWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-66296
trivy image --scanners vuln IMAGE | grep CVE-2026-66296
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit b70c6b2 in lud/oaskit github.com · patch
Exploits and proof of concept
- https://github.com/lud/oaskit/security/advisories/GHSA-h7xw-x8wr-xpcc github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-66296 cna.erlef.org · related
- OSV record EEF-CVE-2026-66296 osv.dev · related
- Introducing commit 552de8c in lud/oaskit github.com · related
Source: the record CVE-2026-66296 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse