MediumGHSA-846p-jg2w-w324CVE-2026-23991GO-2026-4348

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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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
Update to the fixed version for your release line, for example:go get github.com/theupdateframework/go-tuf/v2@v2.3.1

Details

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
github.com/theupdateframework/go-tuf/v2 security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.