CVE-2026-59247
Last modified
CVE-2026-59247 is a high-severity vulnerability rated 7.6/10 on the CVSS scale. 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. EPSS estimates a 0.13% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:4.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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| gleam-lang | gleam | >= 0.18.0, < 1.18.0 |
| gleam-lang | gleam | >= 0.18.0, < 1.18.0; >= 8447b78cc844ff4aec44eea23dbd68d1fea11f11, < c9c0d48c123c8abae6db8dd61b25ccb427ed3d35 |
| gleam-lang | gleam | >= v0.18.0-elixir, < v1.18.0-elixir; >= v0.18.0-elixir-slim, < v1.18.0-elixir-slim; >= v0.18.0-elixir-alpine, < v1.18.0-elixir-alpine; >= v0.18.0-erlang, < v1.18.0-erlang; >= v0.18.0-erlang-slim, < v1.18.0-erlang-slim; >= v0.18.0-erlang-alpine, < v1.18.0-erlang-alpine; >= v0.18.0-node, < v1.18.0-node; >= v0.18.0-node-slim, < v1.18.0-node-slim; >= v0.18.0-node-alpine, < v1.18.0-node-alpine; >= v1.6.0-scratch, < v1.18.0-scratch |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-59247?
How severe is CVE-2026-59247?
How do I fix CVE-2026-59247?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59240The vulnerability involves an Insecure Direct Object Referen…6.9
- CVE-2026-59242Apache Airflow's XCom `GET /api/v2/{...}/xcomEntries/{key}?d…
- CVE-2026-59243The FAB auth manager's Azure AD OAuth login defaulted `verif…9.8
- CVE-2026-59244Apache Airflow's secrets masker did not mask `var.json` Vari…
- CVE-2026-59245In the Apache Airflow FAB auth manager, a DAG whose `dag_id`…8.1
- CVE-2026-59246Allocation of resources without limits vulnerability in elix…6.3
- CVE-2026-59248Allocation of resources without limits vulnerability in nine…8.7
- CVE-2026-59249Inconsistent interpretation of HTTP requests (HTTP response …6.3
- CVE-2026-59250Classic buffer overflow in the Erlang/OTP megaco flex scanne…8.3
- CVE-2026-59251Allocation of resources without limits in Erlang/OTP public_…7.5
- CVE-2026-59252Improper Validation of Specified Quantity in Input in ZenHiv…8.2
- CVE-2026-59253n8n before 2.28.0 contains an improper authorization vulnera…5
Are you affected by CVE-2026-59247?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
