Read the docs
TI-2026-42387 Aliases CVE-2026-59247

Insufficient verification of Hex package metadata in Gleam

Priority LOW 34CWE-345Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-345.

Summary

Insufficient Verification of Data Authenticity vulnerability in Gleam allows an adversary in the middle to substitute forged Hex package contents during dependency resolution. During dependency resolution Gleam fetches package metadata from the signature-verified Hex repository, which covers each release's dependency requirements and SHA-256 outer_checksum. After resolving versions, gleam_cli::dependencies::lookup_package makes a second request to the unsigned Hex API through gleam_core::hex::get_package_release and records the outer_checksum and dependency names from that JSON response into manifest.toml, instead of the values from the verified repository metadata. The Hex repository signature does not cover the API response. An adversary in the middle who can intercept TLS with a certificate trusted by the Gleam process (for example a TLS-inspecting proxy using a CA in the operating system trust store or added through GLEAM_CACERTS_PATH), and who can modify both the API release response and the corresponding repository tarball, can supply a package archive with a matching forged checksum without the Hex repository signing key. Gleam verifies the forged tarball against the forged checksum, accepts it, and extracts it as a dependency source, resulting in loss of integrity of the downloaded package contents. Only projects that resolve or update Hex dependencies are affected, which happens when the manifest is missing, a dependency is added or updated, or dependency requirements change. Builds that reuse an unchanged, known-good manifest.toml continue to verify tarballs against its pinned checksum. This issue affects gleam: from 0.18.0 before 1.18.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00182 7th percentileScored 2026-11-07
Fix Fixed gleam (gleam-lang): 1.18.0, v1.18.0-elixir, v1.18.0-elixir-slim +8

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gleam-langgleam0.18.0 to before 1.18.01.18.0Patch availableCNA
gleam-langgleam0.18.0 to before 1.18.01.18.0Patch availableCNA
gleam-langgleamv0.18.0-elixir to before v1.18.0-elixir; v0.18.0-elixir-slim to before v1.18.0-elixir-slim; v0.18.0-elixir-alpine to before v1.18.0-elixir-alpine; v0.18.0-erlang to before v1.18.0-erlang; v0.18.0-erlang-slim to before v1.18.0-erlang-slim; v0.18.0-erlang-alpine to before v1.18.0-erlang-alpine; v0.18.0-node to before v1.18.0-node; v0.18.0-node-slim to before v1.18.0-node-slim; v0.18.0-node-alpine to before v1.18.0-node-alpine; v1.6.0-scratch to before v1.18.0-scratchv1.18.0-elixir, v1.18.0-elixir-slim, v1.18.0-elixir-alpine, v1.18.0-erlang, v1.18.0-erlang-slim, v1.18.0-erlang-alpine, v1.18.0-node, v1.18.0-node-slim, v1.18.0-node-alpine, v1.18.0-scratchPatch availableCNA
  • gleam Vendorgleam-lang Affected 0.18.0 to before 1.18.0 Fixed in 1.18.0 Patch available CNA
  • gleam Vendorgleam-lang Affected 0.18.0 to before 1.18.0 Fixed in 1.18.0 Patch available CNA
  • gleam Vendorgleam-lang Affected v0.18.0-elixir to before v1.18.0-elixir; v0.18.0-elixir-slim to before v1.18.0-elixir-slim; v0.18.0-elixir-alpine to before v1.18.0-elixir-alpine; v0.18.0-erlang to before v1.18.0-erlang; v0.18.0-erlang-slim to before v1.18.0-erlang-slim; v0.18.0-erlang-alpine to before v1.18.0-erlang-alpine; v0.18.0-node to before v1.18.0-node; v0.18.0-node-slim to before v1.18.0-node-slim; v0.18.0-node-alpine to before v1.18.0-node-alpine; v1.6.0-scratch to before v1.18.0-scratch Fixed in v1.18.0-elixir, v1.18.0-elixir-slim, v1.18.0-elixir-alpine, v1.18.0-erlang, v1.18.0-erlang-slim, v1.18.0-erlang-alpine, v1.18.0-node, v1.18.0-node-slim, v1.18.0-node-alpine, v1.18.0-scratch Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*———
  • cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:* Versions — — ·—

Remediation

  • Fix · CNA gleam (gleam-lang) Fixed in 1.18.0
  • Fix · CNA gleam (gleam-lang) Fixed in 1.18.0
  • Fix · CNA gleam (gleam-lang) Fixed in v1.18.0-elixir, v1.18.0-elixir-slim, v1.18.0-elixir-alpine, v1.18.0-erlang, v1.18.0-erlang-slim, v1.18.0-erlang-alpine, v1.18.0-node, v1.18.0-node-slim, v1.18.0-node-alpine, v1.18.0-scratch

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-59247

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences