Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious login URL with XSS payload in 'next' parameter
-
DeliveryDeliver crafted link to victim via phishing
-
ExploitVictim loads blitz login page
-
ExecutionUnsanitized 'next' value executes in browser
-
ImpactSteal session token or redirect to phishing page
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 attack requires that the target application was scaffolded using the blitz generator with versions 3.0.0-3.0.2, retaining the unmodified LoginForm.tsx template file. The 'Next' redirect parameter must be reflected unsanitized into the page - this is the default behavior in the affected template. Exploitation additionally requires passive user interaction (UI:P): the victim must navigate to the attacker-crafted login URL, meaning the attacker must first deliver the malicious link. No authentication is required by the attacker (PR:N). Exploitation is limited to the victim's browser context - there is no server-side code execution component. The CVSS vector confirms no attack requirements beyond a reachable login endpoint (AT:N, AC:L), but the UI:P requirement meaningfully limits mass automated exploitation. |
| Impact | The CVSS 4.0 base score of 2.1 is notably low, driven by UI:P (requires victim interaction) and limited impact metrics (VI:L only - no confidentiality or availability impact on either the vulnerable or subsequent systems). EPSS at 0.03% (9th percentile) reinforces low real-world exploitation probability. The vulnerability is not listed in CISA KEV, confirming no confirmed active exploitation at time of analysis. However, a public proof-of-concept exploit exists on GitHub (E:P in the CVSS supplemental metrics), which lowers the barrier for opportunistic use. The combination of PR:N and AC:L means the attack requires no authentication and minimal skill once a victim clicks a crafted link. Despite the low CVSS score, XSS in a login form carries context-specific risk: credential phishing, session token theft via JavaScript, or open-redirect abuse are realistic outcomes that CVSS impact scores may underweight. The absence of a vendor patch (vendor non-responsive to disclosure) is a material risk factor with no official remediation timeline. |
| Exploit ScenarioDerived | An attacker crafts a URL to a blitz-js login page with a malicious JavaScript payload injected into the 'next' query parameter (e.g., /login?next=javascript:alert(document.cookie)) and distributes this link via phishing email or social media. A victim who clicks the link and lands on the login page triggers execution of the injected script in their browser context, potentially exposing session cookies or redirecting the user to a credential-harvesting page. A public proof-of-concept exploit exists on GitHub, confirming the technique is documented and reproducible. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Cross-site scripting in blitz-js blitz (versions 3.0.0-3.0.2) allows remote attackers to inject malicious scripts via the 'Next' redirect parameter in the LoginForm component's Sign-in flow. The vulnerability requires passive user interaction (a victim must follow a crafted link) and is limited to low-integrity impact on the vulnerable system per CVSS 4.0 scoring. Publicly available exploit code exists (GitHub Gist), though EPSS stands at 0.03% (9th percentile) indicating low observed exploitation probability, and it is not listed in CISA KEV. The vendor did not respond to responsible disclosure, meaning no patch has been released.
RemediationAI
No vendor-released patch has been identified at time of analysis - the vendor did not respond to the responsible disclosure. Developers using blitz 3.0.0-3.0.2 should manually audit and remediate the LoginForm.tsx file in their generated applications. The specific fix is to sanitize or whitelist-validate the 'Next' redirect parameter before reflecting it into the DOM; acceptable values should be restricted to relative paths on the same origin (e.g., reject any value containing 'javascript:', '//', or external hostnames). React's JSX rendering provides some XSS protection when values are rendered as text nodes, but if the 'Next' value is used in an href or dangerouslySetInnerHTML context, explicit encoding or validation is mandatory. As a compensating control, a Content Security Policy (CSP) header restricting inline script execution can reduce XSS exploitability at the cost of additional configuration complexity. Monitor the blitz-js GitHub repository (https://github.com/blitz-js/blitz) for any upstream fix; the public exploit is tracked at https://gist.github.com/TrebledJ/164c7ca6c8208b63e6937bc11984720b.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected code resides in packages/generator/templates/app/src/app/auth/components/LoginForm.tsx within the blitz-js blitz full-stack React framework (CPE: cpe:2.3:a:blitz-js:blitz:*:*:*:*:*:*:*:*). The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored/Reflected XSS). The 'Next' parameter is a standard post-authentication redirect argument common in web auth flows; if its value is reflected into the page DOM without sanitization or encoding, an attacker can inject executable script content. Because this lives in a generator template, every application scaffolded using affected blitz versions likely inherits the vulnerable LoginForm code, potentially broadening the scope beyond a single application.
Know when Blitz 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
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/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A weakness has been identified in blitz-js blitz up to 3.0.2 on GitHub. This impacts an unknown function of the file packages/generator/templates/app/src/app/auth/components/LoginForm.tsx of the component Sign-in. This manipulation of the argument Next causes cross site scripting. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
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-31781
GHSA-h2p9-cr4h-px24
NVD
CVE.org
EPSS
VulDB
Exploit-DB