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.
[
{
"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"
}
]