7.6
HIGH CVSS 4.0
CVE-2026-59247
Insufficient verification of Hex package metadata in Gleam
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 before 1.18.0.

INFO

Published Date :

July 29, 2026, 3:16 p.m.

Last Modified :

July 29, 2026, 4:17 p.m.

Remotely Exploit :

Yes !

Source :

6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products

The following products are affected by CVE-2026-59247 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gleam-lang gleam
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Solution
Ensure package integrity by verifying checksums against trusted metadata.
  • Update Gleam to the latest version.
  • Verify dependency checksums from trusted sources.
  • Configure TLS to prevent interception.
  • Audit dependency resolution process.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-59247 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-59247 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-59247 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 29, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-59247', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-29T15:03:54.127187Z'}
  • New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Jul. 29, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/gleam-lang/gleam', 'vendor': 'gleam-lang', 'modules': ['gleam_cli::dependencies', 'gleam_cli::dependencies::dependency_manager'], 'product': 'gleam', 'versions': [{'status': 'affected', 'version': '0.18.0', 'lessThan': '1.18.0', 'versionType': 'semver'}], 'packageURL': 'pkg:sid/gleam.run/gleam', 'packageName': 'gleam.run/gleam', 'programFiles': ['compiler-cli/src/dependencies.rs', 'compiler-cli/src/dependencies/dependency_manager.rs'], 'collectionURL': 'https://gleam.run', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'gleam_cli::dependencies::lookup_package'}, {'name': 'gleam_cli::dependencies::dependency_manager::DependencyManager::perform_version_resolution'}]}, {'cpes': ['cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/gleam-lang/gleam', 'vendor': 'gleam-lang', 'modules': ['gleam_cli::dependencies', 'gleam_cli::dependencies::dependency_manager'], 'product': 'gleam', 'versions': [{'status': 'affected', 'version': '0.18.0', 'lessThan': '1.18.0', 'versionType': 'semver'}, {'status': 'affected', 'version': '8447b78cc844ff4aec44eea23dbd68d1fea11f11', 'lessThan': 'c9c0d48c123c8abae6db8dd61b25ccb427ed3d35', 'versionType': 'git'}], 'packageURL': 'pkg:github/gleam-lang/gleam', 'packageName': 'gleam-lang/gleam', 'programFiles': ['compiler-cli/src/dependencies.rs', 'compiler-cli/src/dependencies/dependency_manager.rs'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'gleam_cli::dependencies::lookup_package'}, {'name': 'gleam_cli::dependencies::dependency_manager::DependencyManager::perform_version_resolution'}]}, {'cpes': ['cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*'], 'vendor': 'gleam-lang', 'modules': ['gleam_cli::dependencies', 'gleam_cli::dependencies::dependency_manager'], 'product': 'gleam', 'versions': [{'status': 'affected', 'version': 'v0.18.0-elixir', 'lessThan': 'v1.18.0-elixir', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-elixir-slim', 'lessThan': 'v1.18.0-elixir-slim', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-elixir-alpine', 'lessThan': 'v1.18.0-elixir-alpine', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-erlang', 'lessThan': 'v1.18.0-erlang', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-erlang-slim', 'lessThan': 'v1.18.0-erlang-slim', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-erlang-alpine', 'lessThan': 'v1.18.0-erlang-alpine', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-node', 'lessThan': 'v1.18.0-node', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-node-slim', 'lessThan': 'v1.18.0-node-slim', 'versionType': 'other'}, {'status': 'affected', 'version': 'v0.18.0-node-alpine', 'lessThan': 'v1.18.0-node-alpine', 'versionType': 'other'}, {'status': 'affected', 'version': 'v1.6.0-scratch', 'lessThan': 'v1.18.0-scratch', 'versionType': 'other'}], 'packageURL': 'pkg:oci/gleam?repository_url=ghcr.io/gleam-lang', 'packageName': 'gleam-lang/gleam', 'programFiles': ['compiler-cli/src/dependencies.rs', 'compiler-cli/src/dependencies/dependency_manager.rs'], 'collectionURL': 'https://ghcr.io', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'gleam_cli::dependencies::lookup_package'}, {'name': 'gleam_cli::dependencies::dependency_manager::DependencyManager::perform_version_resolution'}]}]
    Added 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 before 1.18.0.
    Added CVSS V4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-345
    Added Reference https://cna.erlef.org/cves/CVE-2026-59247.html
    Added Reference https://github.com/gleam-lang/gleam/commit/c9c0d48c123c8abae6db8dd61b25ccb427ed3d35
    Added Reference https://github.com/gleam-lang/gleam/security/advisories/GHSA-4vvc-458m-r82g
    Added Reference https://github.com/hexpm/specifications/blob/main/registry-v2.md
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-59247
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.