Skip to content
Fencer Intel
medium 5.1

GHSA-gh4w-rw27-p87x json

ReDoS in argparse's `int` type conversion (`ArgumentParser.parse_args`) when `parse_args` receives untrusted argv input

published 27d ago modified 27d ago

Unreviewed: the maintainers' own advisory

Published by the maintainers on their GitHub repository nodeca/argparse. GitHub has not reviewed it into the GitHub Advisory Database and no CVE record has reached us yet, so everything here comes from the maintainers alone. Read the full advisory on GitHub.

cvss
5.1
version 3.1, the maintainers
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

Security advisory published by the maintainers of nodeca/argparse for argparse: the maintainers' own advisory, not a reviewed GitHub Advisory Database entry. The full advisory is on GitHub.

Patch / fix

  • npm argparse 3.0.3

Is GHSA-gh4w-rw27-p87x in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CVSS scores

assigned by version score vector
the maintainers 3.1 5.1 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
npm argparse
>=3.0.0, <3.0.3
3.0.3

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of nodeca/argparse published their own advisory on GitHub. Its facts and headline are shown here; the description stays on GitHub.