{"id":"CVE-2022-39280","aliases":["CVE-2022-39280","GHSA-8fg9-p83m-x5pq","PYSEC-2022-301"],"related":[],"kind":"vulnerability","state":"published","title":"Regular expression denial of service in dparse","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\ndparse versions prior to 0.5.1 contain a regular expression that is vulnerable to [ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) (Regular Expression Denial of Service).\n\nAll users parsing index server URLs with dparse are impacted by this vulnerability.\n\n### Patches\nThe Patch is applied in the `0.5.2` version, all users are recommended to upgrade as soon as possible.\n\n### Workarounds\nAvoid passing index server URLs in the source file to be parsed.\n\n### References\n[https://github.com/pyupio/dparse/tree/security/remove-intensive-regex](https://github.com/pyupio/dparse/tree/security/remove-intensive-regex)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [support@pyup.io](mailto:support@pyup.io)","format":"markdown","source":"ghsa"},{"lang":"es","text":"dparse es un analizador de archivos de dependencia de Python. dparse en versiones anteriores a 0.5.2, contiene una expresión regular que es vulnerable a una Denegación de Servicio por Expresión Regular. Todos los usuarios que parseen URLs de servidores de índices con dparse están impactados por esta vulnerabilidad. Ha sido aplicado un parche en versión \"0.5.2\", Es recomendado a todos los usuarios actualizar a \"0.5.2\" lo antes posible. Los usuarios que no puedan actualizar deberían evitar pasar las URLs del servidor de índices en el archivo fuente a analizar","source":"nvd"}],"published":"2022-09-27T15:28:00.000Z","modified":"2026-06-17T04:58:03.680Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"version":"< 0.5.2","status":"affected"}],"vendor":"pyupio","product":"dparse","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5.2"}],"ecosystem":"PyPI","package":"dparse","purl":"pkg:pypi/dparse","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.5.1"}],"vendor":"pyup","product":"dependency_parser","cpe":"cpe:2.3:a:pyup:dependency_parser:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"8c990170bbd6c0cf212f1151e9025486556062d5"},{"type":"git","status":"affected","fixed":"d87364f9db9ab916451b1b036cfeb039e726e614"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5.2"}],"ecosystem":"PyPI","package":"dparse","purl":"pkg:pypi/dparse","repo":"https://github.com/pyupio/dparse","source":"pysec"}],"references":[{"url":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS","tags":["technical-description","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pyupio/dparse/security/advisories/GHSA-8fg9-p83m-x5pq","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pyupio/dparse/commit/8c990170bbd6c0cf212f1151e9025486556062d5","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pyupio/dparse/commit/d87364f9db9ab916451b1b036cfeb039e726e614","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39280","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/dparse/PYSEC-2022-301.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pyupio/dparse","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:56:40.078Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39280","url":"https://www.cve.org/CVERecord?id=CVE-2022-39280","licence":"CVE Terms of Use","modified":"2025-04-23T16:52:14.285Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8fg9-p83m-x5pq","url":"https://github.com/advisories/GHSA-8fg9-p83m-x5pq","licence":"CC-BY-4.0","modified":"2024-11-20T05:25:43.051Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39280","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39280","licence":"Public domain","modified":"2026-06-17T04:58:03.680Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-301","url":"https://osv.dev/vulnerability/PYSEC-2022-301","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:17.529Z"}],"updatedAt":"2026-11-25T22:58:15.432Z","epss":{"score":0.01366,"percentile":0.72682,"date":"2026-12-02T12:00:21.000Z"}}