go-tuf affected by client DoS via malformed server response
Published 21 Jan 2026 · Updated 10 Sept 2026
Is your project on an affected github.com/theupdateframework/go-tuf/v2?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <2.3.1
- Fixed in
- 2.3.1
go get github.com/theupdateframework/go-tuf/v2@v2.3.1Details
Security Disclosure: Client DoS via malformed server response
Summary
If the TUF repository (or any of its mirrors) returns invalid TUF metadata JSON (valid JSON but not well formed TUF metadata), the client will panic _during parsing_, causing a DoS. The panic happens before any signature is validated. This means that a compromised repository/mirror/cache can DoS clients without having access to any signing key.
Impact
Client crashes upon receiving and parsing malformed TUF metadata. This can cause long running services to enter an restart/crash loop.
Workarounds
None currently.
Affected code
The metadata.checkType function did not properly type assert the (untrusted) input causing it to panic on malformed data.
Is GHSA-846p-jg2w-w324 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/theupdateframework/go-tuf/v2, and gives you the command that fixes it.
More advisories for github.com/theupdateframework/go-tuf/v2
- LowCVE-2026-23992Improper validattion of configured threshold for delegations in github.com/theupdateframework/go-tuf · 2 Feb 2026
- LowCVE-2026-24686Path traversal in TAP 4 multirepo client allows arbitrary file write via repo names in github.com/theupdateframework/go-tuf · 2 Feb 2026
- MediumCVE-2026-24686go-tuf Path Traversal in TAP 4 Multirepo Client Allows Arbitrary File Write via Malicious Repository Names · 26 Jan 2026
- MediumCVE-2026-23992go-tuf improperly validates the configured threshold for delegations · 21 Jan 2026
- LowCVE-2024-47534Incorrect delegation lookups can make go-tuf download the wrong artifact in github.com/theupdateframework/go-tuf · 9 Oct 2024
- HighCVE-2024-47534Incorrect delegation lookups can make go-tuf download the wrong artifact · 1 Oct 2024
References
- Linkgithub.com/theupdateframework/go-tuf/security/advisories/GHSA-846p-jg2w-w324
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-23991
- Linkgithub.com/theupdateframework/go-tuf/commit/73345ab6b0eb7e59d525dac17a428f043074cef6
- Packagegithub.com/theupdateframework/go-tuf
- Linkgithub.com/theupdateframework/go-tuf/releases/tag/v2.3.1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.