# CVE-2022-39280: Regular expression denial of service in dparse

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.43% (percentile 73, 2026-11-26)
- **CWE:** CWE-400
- **Aliases:** GHSA-8fg9-p83m-x5pq, PYSEC-2022-301
- **Published:** 2022-09-27T15:28:00.000Z
- **Modified:** 2026-06-17T04:58:03.680Z

## Who should check

- Projects that depend on PyPI package dparse (\< 0.5.2)
- Anyone running pyupio dparse \< 0.5.2

## Description

dparse is a parser for Python dependency files. dparse in versions before 0.5.2 contain a regular expression that is vulnerable to a Regular Expression Denial of Service. All the users parsing index server URLs with dparse are impacted by this vulnerability. A patch has been applied in version \`0.5.2\`, all the users are advised to upgrade to \`0.5.2\` as soon as possible. Users unable to upgrade should avoid passing index server URLs in the source file to be parsed.

## Affected and fixed versions

- PyPI `dparse`: affected \< 0.5.2; fixed 0.5.2 (osv)
- pyupio dparse: \< 0.5.2 (cvelist)

## Mitigation

- Upgrade dparse to 0.5.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-39280. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-39280.md
Affected: dparse < 0.5.2
Fixed in: 0.5.2

Steps:
1. Search this machine and project for dparse (PyPI), pyupio dparse: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-39280 being exploited?

There is no confirmed exploitation: CVE-2022-39280 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.43% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-39280?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-39280?

dparse \< 0.5.2.

### Is there a fix for CVE-2022-39280?

Yes. Fixed in 0.5.2. Upgrade dparse to 0.5.2 or later.

### How do I check if I'm affected by CVE-2022-39280?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/pyupio/dparse/security/advisories/GHSA-8fg9-p83m-x5pq>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-39280>
- patch: <https://github.com/pyupio/dparse/commit/8c990170bbd6c0cf212f1151e9025486556062d5>
- patch: <https://github.com/pyupio/dparse/commit/d87364f9db9ab916451b1b036cfeb039e726e614>
- other: <https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/dparse/PYSEC-2022-301.yaml>
- other: <https://github.com/pyupio/dparse>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-39280>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8fg9-p83m-x5pq> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2022-301> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-39280> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-39280>
