The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • 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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • 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-25198

CVE-2026-25198: web2py Open Redirect Vulnerability

CVE-2026-25198 is an open redirect flaw in web2py framework that enables attackers to redirect users to malicious sites through crafted URLs, facilitating phishing attacks. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: February 6, 2026

CVE-2026-25198 Overview

CVE-2026-25198 is an open redirect vulnerability affecting web2py, a popular Python-based web application framework. The vulnerability exists in versions 2.27.1-stable+timestamp.2023.11.16.08.03.57 and prior, allowing attackers to redirect users to arbitrary external websites through specially crafted URLs. This type of vulnerability is commonly exploited in phishing campaigns, where attackers leverage the trust users place in legitimate domains to redirect them to malicious sites.

Critical Impact

Attackers can craft malicious URLs that appear to originate from trusted web2py applications, redirecting unsuspecting users to phishing sites or malware distribution endpoints. This undermines user trust in the affected application and can lead to credential theft or malware infection.

Affected Products

  • web2py versions 2.27.1-stable+timestamp.2023.11.16.08.03.57 and prior
  • web2py applications using the prevent_open_redirect function in gluon/tools.py
  • Any web application built on vulnerable web2py framework versions

Discovery Timeline

  • 2026-02-05 - CVE CVE-2026-25198 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25198

Vulnerability Analysis

This open redirect vulnerability (CWE-601) occurs in the prevent_open_redirect function within web2py's gluon/tools.py module. The function is designed to prevent attackers from injecting arbitrary URLs into redirect parameters like _next. However, the original implementation had a flaw in how it handled scenarios where the current.request object was unavailable or not properly initialized.

The vulnerable code path could be triggered when the request context was missing, potentially allowing malicious URLs to bypass the open redirect protection. When users click on specially crafted links hosted on trusted web2py applications, they could be silently redirected to attacker-controlled websites, facilitating phishing attacks or drive-by downloads.

Root Cause

The root cause lies in insufficient validation of the request context before extracting host and scheme information. The original prevent_open_redirect function directly accessed current.request.env.http_host and current.request.is_https without first verifying that the current object had a valid request attribute. This assumption could fail in certain execution contexts, leading to unexpected behavior that could be exploited to bypass redirect validation.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker crafts a URL that exploits the open redirect vulnerability, typically embedding it in phishing emails, malicious advertisements, or compromised websites. When a user clicks the link, they initially connect to the legitimate web2py application, which then redirects them to the attacker's site. Because the initial URL points to a trusted domain, users are less likely to suspect malicious intent.

The security patch addresses this vulnerability by adding a defensive check:

python
 def prevent_open_redirect(url, host=None):
     # Prevent an attacker from adding an arbitrary url after the
     # _next variable in the request.
-    host = host or current.request.env.http_host
-    default_scheme = "https" if current.request.is_https else "http"
+    if hasattr(current, "request"):
+        host = host or current.request.env.http_host
+        default_scheme = "https" if current.request.is_https else "http"
+    else:
+        host = "localhost"
+        default_scheme = "http"
     original = url
 
     if url is not None:

Source: GitHub Commit Reference

Detection Methods for CVE-2026-25198

Indicators of Compromise

  • Unusual redirect patterns in web server access logs containing external domains in the _next or similar URL parameters
  • User reports of being redirected to unexpected external websites after clicking links to the web2py application
  • Web application firewall logs showing blocked attempts to inject external URLs into redirect parameters
  • Increased phishing complaints from users who followed links to the affected web2py application

Detection Strategies

  • Monitor web server logs for URL patterns containing redirect parameters (_next, redirect, url) with external domain values
  • Implement web application firewall rules to detect and block requests with suspicious redirect parameters pointing to untrusted domains
  • Deploy endpoint detection solutions to identify phishing attempts that leverage the vulnerable application's domain

Monitoring Recommendations

  • Enable detailed logging for all redirect operations within the web2py application
  • Configure alerts for redirect requests to domains outside an approved allowlist
  • Review referrer headers in conjunction with redirect parameters to identify potential attack patterns
  • Implement real-time monitoring for anomalous traffic patterns suggesting exploitation attempts

How to Mitigate CVE-2026-25198

Immediate Actions Required

  • Update web2py to the latest version that includes the security patch (commit b4e1ddbd6d40fb30863f6263a67bcdf411a0c6df or later)
  • Review application logs for any evidence of exploitation attempts
  • Notify users about potential phishing risks if exploitation is suspected
  • Implement additional server-side validation for all redirect parameters

Patch Information

The vulnerability has been addressed in a security commit to the web2py repository. The fix adds proper validation to check if the current object has a valid request attribute before accessing host and scheme information. Organizations should update to the patched version by pulling the latest release from the web2py GitHub releases page. Additional details about this vulnerability are available in the JVN Security Notification.

Workarounds

  • Implement a web application firewall rule to block requests containing external domains in redirect parameters
  • Add custom validation middleware to sanitize all user-supplied redirect URLs before processing
  • Configure URL allowlists at the application level to restrict redirects to trusted domains only
  • Consider disabling automatic redirect functionality until the patch can be applied
bash
# Configuration example - Apache mod_rewrite rule to block external redirects
RewriteEngine On
RewriteCond %{QUERY_STRING} (_next|redirect|url)=https?://(?!yourdomain\.com) [NC]
RewriteRule .* - [F,L]

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechWeb2py

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Technical References
  • GitHub Commit Reference

  • GitHub Release Notes

  • JVN Security Notification

  • Web2py Official Website
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF Vulnerability
Default Legacy - Prefooter | 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
  • 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

English