Vulnerabilities in pkg:pypi/sqlite-web

PACKAGE
Advisory Identifier: GHSA-2j58-pwwv-x666
Advisory Summary

CVE-2021-23404 is a HIGH (CVSS 7.6) cross-site request forgery vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Sqlite web libraries in the PyPI ecosystem. The issue involves cross-site request forgery in sqlite-web. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/sqlite-web

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-2j58-pwwv-x666 CVE-2021-23404 HIGH Cross-Site Request Forgery in sqlite-web

CVE-2021-23404 at a Glance

CVE Identifier CVE-2021-23404
GHSA Identifier GHSA-2j58-pwwv-x666
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Sqlite web
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.6

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

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

How to Fix CVE-2021-23404

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

sqlite-web fixed: Latest secure release
pip install sqlite-web>=Latest secure release
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 sqlite-web

How to Check if You Are Affected

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

pip show sqlite-web

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Sqlite web, 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

This affects all versions of package sqlite-web. The SQL dashboard area allows sensitive actions to be performed without validating that the request originated from the application. This could enable an attacker to trick a user into performing these actions unknowingly through a Cross Site Request Forgery (CSRF) attack.

CVE-2021-23404 Affected Sqlite web Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
sqlite-web
PyPI
≤ 0.6.5

References

Frequently Asked Questions

What is CVE-2021-23404?
CVE-2021-23404 is a security vulnerability in Sqlite web involving Cross-Site Request Forgery in sqlite-web under CWE-352: Cross-Site Request Forgery (CSRF).
Which Sqlite web versions are affected?
Affected versions include releases prior to current release patches across affected packages: sqlite-web.
What version fixes CVE-2021-23404?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is sqlite-web affected?
Yes, sqlite-web is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2021-23404?
CVE-2021-23404 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L/E:F.
What CWE is associated with CVE-2021-23404?
CVE-2021-23404 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2021-23404?
Run the dependency tree command: 'pip show sqlite-web'. 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-2j58-pwwv-x666",
  "modified" : "2025-11-27T09:16:04Z",
  "published" : "2021-09-09T17:10:35Z",
  "aliases" : [ "CVE-2021-23404" ],
  "summary" : "Cross-Site Request Forgery in sqlite-web",
  "details" : "This affects all versions of package sqlite-web. The SQL dashboard area allows sensitive actions to be performed without validating that the request originated from the application. This could enable an attacker to trick a user into performing these actions unknowingly through a Cross Site Request Forgery (CSRF) attack.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L/E:F"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sqlite-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.6.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-23404"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/coleifer/sqlite-web"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coleifer/sqlite-web/blob/2e7c85da3d37f80074ed3ae39b5851069b4f301c/sqlite_web/__main__.py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coleifer/sqlite-web/blob/4ba53979eb342c69fb3b7a75eeed43da7a3d3822/sqlite_web/sqlite_web.py#L1338"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/sqlite-web/PYSEC-2021-332.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-PYTHON-SQLITEWEB-1316324"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-09-09T13:38:52Z",
    "nvd_published_at" : "2021-09-08T11:15:00Z"
  }
}