Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend raw HTTP request with literal double-quote in query string via netcat/curl
-
DeliveryWerkzeug exposes raw bytes through request.query_string without URL-decoding
-
ExploitJinja2 |safe filter skips escaping, injecting raw qs into form action attribute
-
ExecutionUnencoded double-quote breaks HTML attribute boundary, inserting attacker-controlled HTML/JS
-
ImpactVictim user loads rendered page and triggers injected event handler
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 attacker must send an HTTP request containing a literal unencoded double-quote character (ASCII 0x22) in the query string, which requires a raw-socket HTTP client such as netcat, curl with --path-as-is, or a custom script - standard web browsers (Chrome, Firefox, Safari, Edge) automatically percent-encode double-quotes as %22 before transmission, making link-based delivery to typical victims impossible. The target must be a self-hosted Smallweb instance at commit 0ecb9c48edbf98dc7e934b54fbac43869e64b4cf or earlier. A victim user must load the server-rendered page containing the injected form action (CVSS UI:P); the vulnerable forms appear on search result pages that render flag and reaction widgets. Exploitation is limited to deployments with public or attacker-accessible HTTP endpoints; there is no authentication requirement on the attacker's side, but the delivery channel constraint (non-browser client) substantially limits social-engineering-based attack paths. |
| Impact | Real-world risk is materially lower than a surface-level XSS assessment suggests, despite the network-accessible attack vector. The CVE description identifies a hard exploitation barrier: standard browsers (Chrome, Firefox, Safari, Edge) automatically percent-encode double-quote characters as %22 in query strings before transmission, so Werkzeug receives %22 rather than a literal quote - rendering the payload inert. Only raw-socket HTTP clients (netcat, curl with --path-as-is) can deliver the unencoded character, which eliminates the classic 'send a malicious link to a victim' attack path. The assigned CVSS 4.0 vector (AV:N/AC:L) rates complexity as Low, which is inconsistent with this documented delivery constraint; an AC:H assessment is more accurate. No EPSS score is provided in available data. No KEV listing and no public proof-of-concept have been identified. The product is a niche self-hosted RSS aggregator with a small deployment footprint, further limiting exposed population. This is a genuine vulnerability warranting patching, but the exploitability barrier places it at low operational priority compared to standard reflected XSS. |
| Exploit ScenarioDerived | An attacker uses netcat or curl --path-as-is to send a raw HTTP GET request to a Smallweb instance with a payload such as ?q=test"onmouseover=alert(document.cookie) x=" in the query string. The server renders this into a form action attribute via {{ qs|safe }}, breaking the attribute boundary and injecting an event handler. A victim user who loads the resulting page and mouses over the form element triggers the injected JavaScript in their browser's origin context. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 13, 2026
Reflected XSS in Kagi Smallweb's query string rendering allows injection of JavaScript into HTML form action attributes across three server-rendered templates. Jinja2's |safe filter was applied to the raw Werkzeug request.query_string value in flag_panel.html, mobile_more.html, and reactions.html, bypassing auto-escaping when unencoded double-quote characters appear in the query string. Exploitation is technically feasible but practically constrained: standard browsers percent-encode double-quotes as %22, so delivery requires raw HTTP clients such as curl or netcat rather than crafted URLs sent to victims. No public exploit or active exploitation (CISA KEV) has been identified; the fix is patch commit 00b68144.
RemediationAI
The vendor-released fix is commit 00b68144e583f20a6b67e29cf01bc07f57979ffb, publicly available at https://github.com/kagisearch/smallweb/commit/00b68144e583f20a6b67e29cf01bc07f57979ffb. Operators of self-hosted Smallweb instances should update to a revision at or after this commit by pulling from the main branch. The patch removes all four instances of the Jinja2 |safe filter from the three affected templates, restoring auto-escaping in HTML attribute context. As a compensating control before patching, configure a WAF or reverse proxy rule to reject HTTP requests containing a literal unencoded double-quote character (ASCII 0x22) in the query string; this blocks the only known exploitation path without affecting normal browser traffic, since browsers transmit %22 instead. No tagged release version exists to target as an upgrade destination due to the rolling release model.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Kagi Smallweb is a Python web application built on Werkzeug and Jinja2 that aggregates RSS feeds from the 'small web'. The vulnerability stems from Werkzeug's request.query_string property, which returns the raw byte sequence of the HTTP request-target verbatim - without URL-decoding. Jinja2's |safe filter marks template values as trusted HTML, entirely bypassing the engine's context-sensitive auto-escaping. The vulnerable templates rendered {{ qs|safe }} directly into the value of HTML <form action> attributes; an unencoded double-quote character in qs terminates the attribute value prematurely, allowing injection of arbitrary HTML attributes or event handlers. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause: treating a user-controlled byte sequence as safe HTML in an attribute context. The fix, verified from the public commit diff at 00b68144e583f20a6b67e29cf01bc07f57979ffb, removes |safe from all four occurrences across the three templates, restoring Jinja2's default HTML-attribute escaping.
Know when the next one hits your stack
- 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:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
AC:H reflects the documented browser-encoding barrier preventing standard URL delivery; S:C captures XSS scope change into victim browser context.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A security flaw has been discovered in kagisearch smallweb up to 0ecb9c48edbf98dc7e934b54fbac43869e64b4cf. The affected element is the function index of the file app/sw.py of the component Query String Rendering. Performing a manipulation of the argument qs results in cross site scripting. The attack is possible to be carried out remotely. This product adopts a rolling release strategy to maintain continuous delivery. Therefore, version details for affected or updated releases cannot be specified. The patch is named 00b68144e583f20a6b67e29cf01bc07f57979ffb. It is recommended to apply a patch to fix this issue. Exploitability requires a raw HTTP request carrying unencoded double-quote characters in the query string - Werkzeug's request.query_string returns the raw request-target, and ordinary browsers percent-encode " as %22, so the payload only lands via netcat/curl-style raw sockets.
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-77073
GHSA-4mhr-77m9-cfv9
NVD
CVE.org
EPSS
VulDB
Exploit-DB