CVE-2026-9520

blitz-js blitz Sign-in LoginForm.tsx cross site scripting

Published May 26, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A weakness in Blitz’s Sign‑In component—specifically in the file packages/generator/templates/app/src/app/auth/components/LoginForm.tsx—allows an attacker to inject arbitrary JavaScript via the Next parameter. The injected payload is rendered without proper escaping, leading to a cross‑site scripting condition. This flaw can be exploited remotely by supplying a crafted Next value in an HTTP request to the login page.

Affected Systems

The vulnerability affects versions of blitz‑js Blitz up to and including 3.0.2. No enhancement is available for later releases. The issue resides in the LoginForm.tsx component of the Blitz authentication flow.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. EPSS information is not available, and the flaw is not listed in CISA KEV. Attackers can reach the vulnerable code remotely, and public exploit code has been released, raising the likelihood of real‑world attacks. The primary risk is the potential execution of malicious script in the context of the user’s browser, which could lead to data disclosure or manipulation if the attacker succeeds.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Blitz to a version newer than 3.0.2, where the Next parameter handling has been corrected.
  • At the very least, validate or whitelist the Next parameter on the server side before rendering it back to the client.
  • Implement a Content Security Policy that disallows inline script execution and limits script sources to trusted domains.

Generated by OpenCVE AI on May 26, 2026 at 03:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h2p9-cr4h-px24 Blitz has a Cross-site Scripting issue
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Blitzjs
Blitzjs blitz
Vendors & Products Blitzjs
Blitzjs blitz
Type Values Removed Values Added
Description 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.
Title blitz-js blitz Sign-in LoginForm.tsx cross site scripting
First Time appeared Blitz-js
Blitz-js blitz
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:blitz-js:blitz:*:*:*:*:*:*:*:*
Vendors & Products Blitz-js
Blitz-js blitz
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:N/I:P/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
May 27, 2026, 7:59 PM
Reserved
May 25, 2026, 7:12 PM
Status
Deferred
Published
May 26, 2026, 2:16 AM
Modified
Jul 23, 2026, 11:10 AM