Vulnerabilities in pkg:pypi/archivy
PACKAGECVE-2021-4162 is a MODERATE (CVSS 4.3) archivy is vulnerable to cross-site vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Archivy libraries in the PyPI ecosystem. The issue involves archivy is vulnerable to cross-site request forgery (csrf). Remediation is available by upgrading affected packages to version 1.6.2.
pkg:pypi/archivy
Vulnerability advisories affecting package pkg:pypi/archivy. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9236-8w7q-rmrv | CVE-2021-4162 | MODERATE | archivy is vulnerable to Cross-Site Request Forgery (CSRF) |
| GHSA-28mg-98xm-q493 | CVE-2022-0697 | MODERATE | Open Redirect in archivy |
CVE-2021-4162 at a Glance
Security Impact
CVSS: 4.3
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:N/I:L/A:N).
How to Fix CVE-2021-4162
To remediate this vulnerability, upgrade all affected Archivy 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 archivy>=1.6.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show archivy
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-4162, inspect your installed packages using pip:
pip show archivy
Analyze the terminal output to locate any version of Archivy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.2), your application is affected.
Note: The pip show archivy 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 Archivy, 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-4162 Affected Archivy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
archivy
|
PyPI |
< 1.6.2
|
1.6.2
|
References
Frequently Asked Questions
What is CVE-2021-4162?
Which Archivy versions are affected?
What version fixes CVE-2021-4162?
Is archivy affected?
What is the CVSS score of CVE-2021-4162?
What CWE is associated with CVE-2021-4162?
How can I check PyPI dependencies for CVE-2021-4162?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9236-8w7q-rmrv",
"modified" : "2024-09-12T20:50:41Z",
"published" : "2022-01-06T21:59:50Z",
"aliases" : [ "CVE-2021-4162" ],
"summary" : "archivy is vulnerable to Cross-Site Request Forgery (CSRF)",
"details" : "archivy is vulnerable to Cross-Site Request Forgery (CSRF). There is [a fix](https://github.com/archivy/archivy/commit/796c3ae318eea183fc88c87ec5a27355b0f6a99d) available in the master branch.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "archivy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.6.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4162"
}, {
"type" : "WEB",
"url" : "https://github.com/archivy/archivy/commit/796c3ae318eea183fc88c87ec5a27355b0f6a99d"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-9236-8w7q-rmrv"
}, {
"type" : "WEB",
"url" : "https://github.com/archivy/archivy"
}, {
"type" : "WEB",
"url" : "https://github.com/archivy/archivy/releases/tag/v1.6.2"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/archivy/PYSEC-2021-869.yaml"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/e204a768-2129-4b6f-abad-e436309c7c32"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-05T20:41:25Z",
"nvd_published_at" : "2021-12-25T12:15:00Z"
}
}