Improper Input Validation The advisory has been revoked - it doesn't affect any version of package github.com/personnummer/go  (opens in a new tab)


Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMPERSONNUMMERGO-2400643
  • published13 Feb 2022
  • disclosed11 Feb 2022
  • creditNiklas Sköldmark

Introduced: 11 Feb 2022

CVE NOT AVAILABLE CWE-20  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Amendment

This was deemed not a vulnerability.

Overview

github.com/personnummer/go is a Validator of Swedish social security numbers.

Affected versions of this package are vulnerable to Improper Input Validation due to regular expression that allowing the first three digits in the last four digits of the "personnummer" to be 000, which is invalid. This vulnerability impacts users who rely on the four last digits of "personnummer" to be a real "personnummer".

NOTE: This vulnerability is a duplicate of this advisory.