# CVE-2022-31313: Backdoor in api-res-py

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.98%, higher than 81% of CVEs (2026-12-01)
- Published: 2022-06-08T19:13:13.000Z
- Modified: 2026-07-01T20:22:49.403Z
- Also known as: GHSA-6978-4w92-428p, PYSEC-2022-43071
- Assigned by: mitre

## Description

api-res-py package in PyPI 0.1 is vulnerable to a code execution backdoor in the request package.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- api-res-py (PyPI): up to 0.1
- api-res-py_project api-res-py: 0.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <http://pypi.doubanio.com/simple/request> (third-party-advisory, web)
- <https://pypi.org/project/api-res-py/> (package, third-party-advisory)
- <https://github.com/rakeshrkz7/as_api_res/issues/1> (broken-link, report, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31313> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/api-res-py/PYSEC-2022-43071.yaml> (web)
- <https://github.com/rakeshrkz7/as_api_res> (package)
- <https://pypi.org/project/api-res-py> (web)
- <https://github.com/advisories/GHSA-6978-4w92-428p> (advisory)

## Sources

- CVE List: [CVE-2022-31313](https://www.cve.org/CVERecord?id=CVE-2022-31313), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-6978-4w92-428p](https://github.com/advisories/GHSA-6978-4w92-428p), CC-BY-4.0, modified 2024-12-02
- NVD: [CVE-2022-31313](https://nvd.nist.gov/vuln/detail/CVE-2022-31313), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43071](https://osv.dev/vulnerability/PYSEC-2022-43071), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2022-31313 · Whole record: https://cve.day/CVE-2022-31313.json · Rebuilt by cve.day 2026-11-25T22:58:12.178Z
