GO-2020-0049

Source
https://pkg.go.dev/vuln/GO-2020-0049
Import Source
https://vuln.go.dev/ID/GO-2020-0049.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2020-0049
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Improper input validation in github.com/justinas/nosurf
Details

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.

References
Credits
    • @aeneasr

Affected packages

Go / github.com/justinas/nosurf

Package

Name
github.com/justinas/nosurf
View open source insights on deps.dev
Purl
pkg:golang/github.com/justinas/nosurf

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.1

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/justinas/nosurf",
            "symbols": [
                "CSRFHandler.ServeHTTP",
                "VerifyToken",
                "verifyToken"
            ]
        }
    ]
}