banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25151

CVE-2026-25151: Qwik Framework CSRF Vulnerability

CVE-2026-25151 is a CSRF vulnerability in Qwik framework that allows attackers to bypass form submission protections through crafted Content-Type headers. This article covers technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2026-25151 Overview

CVE-2026-25151 is a Cross-Site Request Forgery (CSRF) protection bypass vulnerability affecting Qwik, a performance-focused JavaScript framework. The vulnerability exists in Qwik City's server-side request handler, which inconsistently interprets HTTP request headers. A remote attacker can exploit this flaw to circumvent form submission CSRF protections by crafting specially formatted or multi-valued Content-Type headers.

Critical Impact

Attackers can bypass CSRF protections to perform unauthorized actions on behalf of authenticated users, potentially leading to account compromise, data manipulation, or privilege escalation.

Affected Products

  • Qwik versions prior to 1.19.0
  • Qwik City middleware request handler
  • Applications using Qwik City's built-in CSRF protection mechanisms

Discovery Timeline

  • 2026-02-03 - CVE-2026-25151 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-25151

Vulnerability Analysis

This vulnerability stems from inconsistent Content-Type header parsing in Qwik City's CSRF protection middleware. The original implementation checked for "simple request" content types (application/x-www-form-urlencoded, multipart/form-data, text/plain) to determine whether to enforce CSRF origin validation. However, the parsing logic could be manipulated through specially crafted Content-Type headers, allowing attackers to bypass the protection entirely.

The flaw is classified under CWE-352 (Cross-Site Request Forgery), where the web application does not sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request.

Root Cause

The root cause lies in the checkCSRF function within resolve-request-handlers.ts. The original implementation only applied CSRF checks when a form-based Content-Type was detected. This logic failed to account for scenarios where:

  1. No Content-Type header is present
  2. Malformed or multi-valued Content-Type headers are submitted
  3. Content-Type headers with additional parameters or unusual formatting bypass the simple check

The fix addresses this by inverting the logic—now treating requests without a Content-Type header, or with "simple request" content types, as requiring CSRF validation.

Attack Vector

The attack is network-based and requires user interaction (the victim must visit a malicious page while authenticated). An attacker can craft a malicious webpage that submits a forged request to the vulnerable Qwik application. By manipulating the Content-Type header in ways that bypass the original parsing logic, the attacker can make requests that evade CSRF protection while still being processed by the server.

typescript
// Security patch in resolve-request-handlers.ts
// Source: https://github.com/QwikDev/qwik/commit/eebf610e04cc3a690f11e10191d09ff0fca1c7ed

 function csrfCheckMiddleware(requestEv: RequestEvent) {
   checkCSRF(requestEv);
 }
-function checkCSRF(requestEv: RequestEvent, laxProto?: 'lax-proto') {
-  const isForm = isContentType(
-    requestEv.request.headers,
-    'application/x-www-form-urlencoded',
-    'multipart/form-data',
-    'text/plain'
-  );
-  if (isForm) {
+export function checkCSRF(requestEv: RequestEvent, laxProto?: 'lax-proto') {
+  const contentType = requestEv.request.headers.get('content-type');
+
+  const isSimpleRequest =
+    !contentType ||
+    isContentType(
+      requestEv.request.headers,
+      'application/x-www-form-urlencoded',
+      'multipart/form-data',
+      'text/plain'
+    );
+
+  if (isSimpleRequest) {
     const inputOrigin = requestEv.request.headers.get('origin');
     const origin = requestEv.url.origin;
     let forbidden = inputOrigin !== origin;

Detection Methods for CVE-2026-25151

Indicators of Compromise

  • Unusual HTTP requests with missing or malformed Content-Type headers targeting form submission endpoints
  • Requests with multi-valued Content-Type headers in server access logs
  • Cross-origin requests to state-changing endpoints that bypass normal CSRF token validation
  • Increased form submissions from unexpected referrers or without proper Origin headers

Detection Strategies

  • Monitor web server logs for requests with unusual Content-Type header patterns, including empty values, multiple values, or unexpected parameters
  • Implement Web Application Firewall (WAF) rules to detect and alert on malformed Content-Type headers
  • Review authentication logs for suspicious account activity that may indicate successful CSRF exploitation
  • Deploy anomaly detection on form submission endpoints to identify unusual request patterns

Monitoring Recommendations

  • Enable verbose logging for the Qwik City request handler middleware to capture Content-Type header values
  • Set up alerts for state-changing requests that originate from unexpected origins
  • Monitor for exploitation attempts by tracking requests with missing or null Content-Type headers to sensitive endpoints
  • Implement request integrity monitoring to detect potential CSRF attack patterns

How to Mitigate CVE-2026-25151

Immediate Actions Required

  • Upgrade Qwik to version 1.19.0 or later immediately
  • Audit application logs for any suspicious activity that may indicate prior exploitation
  • Review any custom CSRF protection implementations that may have similar Content-Type parsing issues
  • Consider implementing additional defense-in-depth measures such as SameSite cookies

Patch Information

The vulnerability has been patched in Qwik version 1.19.0. The fix modifies the checkCSRF function to properly handle edge cases in Content-Type header parsing. The patch ensures CSRF validation is applied to all "simple requests" as defined by CORS, including requests without a Content-Type header. For detailed patch information, see the GitHub Commit and GitHub Security Advisory.

Workarounds

  • If immediate upgrade is not possible, implement additional server-side CSRF token validation independent of Qwik City's built-in protection
  • Deploy a reverse proxy or WAF rule to normalize Content-Type headers before they reach the application
  • Implement strict SameSite cookie attributes (SameSite=Strict or SameSite=Lax) to provide defense-in-depth against CSRF attacks
  • Add custom middleware to explicitly validate Origin headers for all state-changing requests
bash
# Update Qwik to patched version
npm update @builder.io/qwik @builder.io/qwik-city

# Or install specific patched version
npm install @builder.io/qwik@1.19.0 @builder.io/qwik-city@1.19.0

# Verify installed version
npm list @builder.io/qwik

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechQwik

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-352
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25155: Qwik Framework CSRF Vulnerability

  • CVE-2026-27971: Qwik Framework RCE Vulnerability

  • CVE-2026-25150: Qwik Framework Privilege Escalation Flaw

  • CVE-2026-25148: Qwik.js Framework XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use