CVE-2021-23404: Sqlite web Cross-Site Request Forgery Vulnerability
HIGHCVE-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.
CVE-2021-23404 at a Glance
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).
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.
pip install sqlite-web>=Latest secure release
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
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?
Which Sqlite web versions are affected?
What version fixes CVE-2021-23404?
Is sqlite-web affected?
What is the CVSS score of CVE-2021-23404?
What CWE is associated with CVE-2021-23404?
How can I check PyPI dependencies for CVE-2021-23404?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}