Skip to main content

Kagi Smallweb EUVDEUVD-2026-77073

| CVE-2026-90583 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-09-13 cna@vuldb.com GHSA-4mhr-77m9-cfv9
5.3
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Send raw HTTP request with literal double-quote in query string via netcat/curl
  2. Delivery
    Werkzeug exposes raw bytes through request.query_string without URL-decoding
  3. Exploit
    Jinja2 |safe filter skips escaping, injecting raw qs into form action attribute
  4. Execution
    Unencoded double-quote breaks HTML attribute boundary, inserting attacker-controlled HTML/JS
  5. Impact
    Victim 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

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

smallweb 0ecb9c48edbf98dc7e934b54fbac43869e64b4cf

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

Vendor (vuldb) PRIMARY 5.3 MEDIUM
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
vuln.today AI 4.7 MEDIUM

AC:H reflects the documented browser-encoding barrier preventing standard URL delivery; S:C captures XSS scope change into victim browser context.

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

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

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

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

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Rare
niche self-hosted RSS aggregator with small developer community
Data Quality
7 sources
Confidence: High

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 No
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

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