RUSTSEC-2020-0166
Dashboard / Vulnerabilities / RUSTSEC-2020-0166
Summary: personnummer Input validation error
Details: Swedish personal identity is in the form of YYMMDD-XXXX An issue arises from the regular expression allowing the first three digits in the last four digits of the personnummer to be 000, which is invalid. To mitigate this without upgrading, a check on the last four digits can be made to make sure it's not 000x. The affected version should not be relied on without the mitigation to check that the swedish personal identity number is valid.
References: https://crates.io/crates/personnummer, https://rustsec.org/advisories/RUSTSEC-2020-0166.html, https://github.com/personnummer/rust/pull/4
Affected packages
Package
Name: personnummer
Purl: pkg:cargo/personnummer
Affected ranges
Type: SEMVER
Events:
