personnummer@2.0.2 vulnerabilities

Validate Swedish personal identity numbers

Direct Vulnerabilities

Known vulnerabilities in the personnummer package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Improper Input Validation

personnummer is a Validate Swedish personal identity numbers

Affected versions of this package are vulnerable to Improper Input Validation via the regular expression allowing the first three digits in the last four digits of the personnummer to be 000, which is invalid. It is exploitable when the user relies on the four last digits of the personnummer to be a _real_ personnummer.

How to fix Improper Input Validation?

Upgrade personnummer to version 3.1.0 or higher.

<3.1.0
  • M
Improper Input Validation

personnummer is a Validate Swedish personal identity numbers

Affected versions of this package are vulnerable to Improper Input Validation. The last four digits of the number are not validated.

How to fix Improper Input Validation?

Upgrade personnummer to version 3.1.0 or higher.

<3.1.0