Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-59247

HIGH 7.6EPSS 5%

Insufficient verification of Hex package metadata in Gleam

Mitigation

  • Upgrade Gleam to 1.18.0 or later.

Who should check

  • Anyone running Gleam >= v0.18.0-rc1-elixir, < v1.18.0-elixir; >= v0.18.0-rc1-erlang, < v1.18.0-erlang; >= v0.18.0-rc1-node, < v1.18.0-node; >= v0.18.0-rc1-node-slim, < v1.18.0-node-slim; >= v0.18.0-rc1-elixir-slim, < v1.18.0-elixir-slim; >= v0.18.0-rc1-erlang-slim, < v1.18.0-erlang-slim; >= v0.18.0-rc1-erlang-alpine, < v1.18.0-erlang-alpine; >= v0.18.0-rc1-elixir-alpine, < v1.18.0-elixir-alpine; >= v0.18.0-rc1-node-alpine, < v1.18.0-node-alpine; >= v0.18.0-rc1-scratch, < v1.18.0-scratch
  • Anyone running Gleam >= 0.18.0-rc1, < 1.18.0
  • Anyone running Gleam >= 8447b78cc844ff4aec44eea23dbd68d1fea11f11, < c9c0d48c123c8abae6db8dd61b25ccb427ed3d35

Vulnerability facts

Affected
Gleam >= v0.18.0-rc1-elixir, < v1.18.0-elixir; >= v0.18.0-rc1-erlang, < v1.18.0-erlang; >= v0.18.0-rc1-node, < v1.18.0-node; >= v0.18.0-rc1-node-slim, < v1.18.0-node-slim; >= v0.18.0-rc1-elixir-slim, < v1.18.0-elixir-slim; >= v0.18.0-rc1-erlang-slim, < v1.18.0-erlang-slim; >= v0.18.0-rc1-erlang-alpine, < v1.18.0-erlang-alpine; >= v0.18.0-rc1-elixir-alpine, < v1.18.0-elixir-alpine; >= v0.18.0-rc1-node-alpine, < v1.18.0-node-alpine; >= v0.18.0-rc1-scratch, < v1.18.0-scratch; Gleam >= 0.18.0-rc1, < 1.18.0; Gleam >= 8447b78cc844ff4aec44eea23dbd68d1fea11f11, < c9c0d48c123c8abae6db8dd61b25ccb427ed3d35
Fixed in
Gleam 1.18.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.6 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Passive
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.20% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-345
Published
Modified

Description

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-rc1 before 1.18.0.

Affected and fixed versions

Package / productAffectedFixedSource
Gleam>= v0.18.0-rc1-elixir, < v1.18.0-elixir; >= v0.18.0-rc1-erlang, < v1.18.0-erlang; >= v0.18.0-rc1-node, < v1.18.0-node; >= v0.18.0-rc1-node-slim, < v1.18.0-node-slim; >= v0.18.0-rc1-elixir-slim, < v1.18.0-elixir-slim; >= v0.18.0-rc1-erlang-slim, < v1.18.0-erlang-slim; >= v0.18.0-rc1-erlang-alpine, < v1.18.0-erlang-alpine; >= v0.18.0-rc1-elixir-alpine, < v1.18.0-elixir-alpine; >= v0.18.0-rc1-node-alpine, < v1.18.0-node-alpine; >= v0.18.0-rc1-scratch, < v1.18.0-scratch—cvelist
Gleam>= 0.18.0-rc1, < 1.18.0—cvelist
Gleam>= 8447b78cc844ff4aec44eea23dbd68d1fea11f11, < c9c0d48c123c8abae6db8dd61b25ccb427ed3d35—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-59247. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-59247.md
Affected: Gleam >= v0.18.0-rc1-elixir, < v1.18.0-elixir; >= v0.18.0-rc1-erlang, < v1.18.0-erlang; >= v0.18.0-rc1-node, < v1.18.0-node; >= v0.18.0-rc1-node-slim, < v1.18.0-node-slim; >= v0.18.0-rc1-elixir-slim, < v1.18.0-elixir-slim; >= v0.18.0-rc1-erlang-slim, < v1.18.0-erlang-slim; >= v0.18.0-rc1-erlang-alp…
Fixed in: Gleam 1.18.0

Steps:
1. Search this machine and project for Gleam: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-59247 being exploited?

There is no confirmed exploitation: CVE-2026-59247 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-59247?

High: CVSS 7.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-59247?

Gleam >= v0.18.0-rc1-elixir, < v1.18.0-elixir; >= v0.18.0-rc1-erlang, < v1.18.0-erlang; >= v0.18.0-rc1-node, < v1.18.0-node; >= v0.18.0-rc1-node-slim, < v1.18.0-node-slim; >= v0.18.0-rc1-elixir-slim, < v1.18.0-elixir-slim; >= v0.18.0-rc1-erlang-slim, < v1.18.0-erlang-slim; >= v0.18.0-rc1-erlang-alpine, < v1.18.0-erlang-alpine; >= v0.18.0-rc1-elixir-alpine, < v1.18.0-elixir-alpine; >= v0.18.0-rc1-node-alpine, < v1.18.0-node-alpine; >= v0.18.0-rc1-scratch, < v1.18.0-scratch; Gleam >= 0.18.0-rc1, < 1.18.0; Gleam >= 8447b78cc844ff4aec44eea23dbd68d1fea11f11, < c9c0d48c123c8abae6db8dd61b25ccb427ed3d35.

Is there a fix for CVE-2026-59247?

Yes. Fixed in Gleam 1.18.0. Upgrade Gleam to 1.18.0 or later.

How do I check if I'm affected by CVE-2026-59247?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors