personnummer@2.0.1 vulnerabilities

Validate Swedish personal identity numbers

  • latest version

    3.2.1

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    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