CVE-2026-141356: apko and melange expose repository credentials in build output
apko versions before 1.5.6 and melange versions before 0.66.1 can expose HTTP Basic Authentication credentials embedded in APK repository URLs. Affected builds can write usernames and passwords in cleartext to logs and error messages, including at the default log level. apko can also expose these credentials in package and index cache directory names and exported trace spans. Anyone with access to this output may obtain the credentials. The earlier fix for CVE-2024-36127 redacted repository URLs during YAML serialization, leaving these other exposure paths open.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.5.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.66.1
Event History
Frequently Asked Questions
Who can obtain the exposed credentials?
Anyone with access to affected build logs, error messages, or, for apko, package and index cache directory names or exported trace spans may obtain the cleartext HTTP Basic Authentication credentials.
Is a non-default logging configuration required for exposure?
No. Affected builds can write repository usernames and passwords to logs and error messages at the default log level.
What repository configurations are at risk?
The exposure applies when APK repository URLs embed HTTP Basic Authentication credentials. Builds without usernames and passwords embedded in repository URLs are not described as affected by this issue.
Which versions need remediation?
apko versions before 1.5.6 and melange versions before 0.66.1 are affected. The data identifies exposure paths beyond the earlier YAML-serialization redaction fix for CVE-2024-36127.