GO-2022-0402

Source
https://pkg.go.dev/vuln/GO-2022-0402
Import Source
https://vuln.go.dev/ID/GO-2022-0402.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2022-0402
Aliases
Published
2022-07-01T20:10:43Z
Modified
2024-05-20T16:03:47Z
Summary
Panic in NATS JWT decoding in github.com/nats-io/jwt
Details

A malicious account can create and sign a User JWT which causes a panic when decoded by the NATS JWT library.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2022-0402"
}
References

Affected packages

Go / github.com/nats-io/jwt

Package

Name
github.com/nats-io/jwt
View open source insights on deps.dev
Purl
pkg:golang/github.com/nats-io/jwt

Affected ranges

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

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/nats-io/jwt",
            "symbols": [
                "Account.Validate",
                "AccountClaims.Validate",
                "Export.Validate",
                "Exports.Validate",
                "Import.Validate",
                "Imports.Validate"
            ]
        }
    ]
}