Incorrect Type Conversion or Cast Affecting dagdotdev package, versions <0.0.20-r14


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-DAGDOTDEV-16423674
  • published5 May 2026
  • disclosed9 May 2026

Introduced: 5 May 2026

NewCVE-2026-42576  (opens in a new tab)
CWE-704  (opens in a new tab)

How to fix?

Upgrade Wolfi dagdotdev to version 0.0.20-r14 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream dagdotdev package and not the dagdotdev package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

apko allows users to build and publish OCI container images built from apk packages. Prior to version 1.2.7, DiscoverKeys in pkg/apk/apk/implementation.go unconditionally type-asserts JWKS keys as *rsa.PublicKey without checking the key type. If a repository JWKS endpoint returns a non-RSA key (e.g. EC), the unchecked assertion panics and crashes apko. This affects any workflow that initializes the APK database and fetches repository keys. This issue has been patched in version 1.2.7.