personnummer@2.0.1 vulnerabilities

Validate Swedish personal identity numbers

  • latest version

    3.2.1

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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