Vulnerabilities in pkg:pypi/web2py

PACKAGE
Advisory Identifier: GHSA-rf8c-3f5p-xv45
Advisory Summary

CVE-2026-25198 is a MODERATE (CVSS 4.7) web2py has an open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Web2py libraries in the PyPI ecosystem. The issue involves web2py has an open redirect vulnerability. Remediation is available by upgrading affected packages to version 3.1.1.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/web2py

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/web2py. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rf8c-3f5p-xv45 CVE-2026-25198 MODERATE web2py has an Open Redirect Vulnerability
GHSA-pvcp-73cg-6f77 CVE-2016-4807 MODERATE Web2py Reflected XSS vulnerability
GHSA-w4r7-vm83-q2c7 CVE-2023-22432 MODERATE Open redirect in web2py
GHSA-jr83-vr4j-mp6p CVE-2016-3954 MODERATE web2py exposure of sensitive information
GHSA-gp69-xcm6-ffqj CVE-2016-4808 MODERATE Web2py Cross-Site Request Forgery vulnerability
GHSA-gv85-wgxc-vc56 CVE-2016-10321 CRITICAL web2py is vulnerable to password brute-force attack
GHSA-q2rq-qgcf-m22w CVE-2016-3953 CRITICAL web2py remote code execution via hardcoded encryption key in session.connect function
GHSA-cgrj-xjm7-9q27 CVE-2022-33146 MODERATE Open redirect in web2py

CVE-2026-25198 at a Glance

CVE Identifier CVE-2026-25198
GHSA Identifier GHSA-rf8c-3f5p-xv45
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Web2py
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-25198

To remediate this vulnerability, upgrade all affected Web2py dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

web2py fixed: 3.1.1
pip install web2py>=3.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show web2py

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-25198, inspect your installed packages using pip:

pip show web2py

Analyze the terminal output to locate any version of Web2py in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), your application is affected.

Note: The pip show web2py command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Web2py, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

web2py versions 2.27.1-stable+timestamp.2023.11.16.08.03.57 and prior contain an Open Redirect vulnerability. If this vulnerability is exploited, the user may be redirected to an arbitrary website when accessing a specially crafted URL. As a result, the user may become a victim of a phishing attack.

CVE-2026-25198 Affected Web2py Versions

1 component(s)
Fixed Versions:
3.1.1
Product / Package Ecosystem Affected Versions Fixed Version
web2py
PyPI
< 3.1.1
3.1.1

References

Frequently Asked Questions

What is CVE-2026-25198?
CVE-2026-25198 is a security vulnerability in Web2py involving web2py has an Open Redirect Vulnerability under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Web2py versions are affected?
Affected versions include releases prior to 3.1.1 across affected packages: web2py.
What version fixes CVE-2026-25198?
Upgrading to 3.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is web2py affected?
Yes, web2py is affected in releases prior to 3.1.1. Upgrade your dependency to 3.1.1 or later.
What is the CVSS score of CVE-2026-25198?
CVE-2026-25198 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N.
What CWE is associated with CVE-2026-25198?
CVE-2026-25198 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2026-25198?
Run the dependency tree command: 'pip show web2py'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rf8c-3f5p-xv45",
  "modified" : "2026-02-05T18:31:10Z",
  "published" : "2026-02-05T09:31:13Z",
  "aliases" : [ "CVE-2026-25198" ],
  "summary" : "web2py has an Open Redirect Vulnerability",
  "details" : "web2py versions 2.27.1-stable+timestamp.2023.11.16.08.03.57 and prior contain an Open Redirect vulnerability. If this vulnerability is exploited, the user may be redirected to an arbitrary website when accessing a specially crafted URL. As a result, the user may become a victim of a phishing attack.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "web2py"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25198"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/web2py/web2py/commit/b4e1ddbd6d40fb30863f6263a67bcdf411a0c6df"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/web2py/web2py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/web2py/web2py/releases"
  }, {
    "type" : "WEB",
    "url" : "https://jvn.jp/en/jp/JVN46925341"
  }, {
    "type" : "WEB",
    "url" : "https://web2py.com"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-05T18:31:10Z",
    "nvd_published_at" : "2026-02-05T08:16:08Z"
  }
}