title: Improper input validation in github.com/justinas/nosurf
description: Due to improper validation of caller input, validation is silently disabled if the provided expected token is malformed, causing any user supplied token to be considered valid.
problem types: CWE 345: Insufficient Verification of Data Authenticity
affected:
{
vendor: github.com/justinas/nosurf
product: github.com/justinas/nosurf
collectionURL: https://pkg.go.dev
packageName: github.com/justinas/nosurf
versions:
version: 0, lessThan: 1.1.1, status: affected, versionType: semver
programRoutines:
name: VerifyToken
name: verifyToken
name: CSRFHandler.ServeHTTP
defaultStatus: unaffected
}