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-105280

MEDIUM 6.9EPSS 14%

Hex writes unverified package tarballs to standard output in mix hex.package fetch

Mitigation

  • Upgrade hex to 2.5.2 or later.
  • Vendor workaround: Write the tarball to a file with --output FILE, which verifies the checksums, and read that file instead of standard output.

Who should check

  • Anyone running hexpm hex >= 0.20.2, < 2.5.2
  • Anyone running hexpm hex >= d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c, < *

Vulnerability facts

Affected
hexpm hex >= 0.20.2, < 2.5.2; hexpm hex >= d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c, < *
Fixed in
hexpm hex 2.5.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Active
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: High
  • Availability impact on other systems: None
EPSS
0.28% chance of exploitation in 30 days (percentile 14, 2026-11-26)
CWE
CWE-354
Published
Modified

Description

Improper Validation of Integrity Check Value vulnerability in hexpm hex allows a package mirror to substitute the tarball that mix hex.package fetch PACKAGE VERSION --output - writes to standard output. Hex compares a fetched tarball's inner and outer checksums with the repository's signed registry before writing it to a file or unpacking it. The standard output branch of mix hex.package fetch writes the bytes returned by Hex.SCM.fetch/3 without that comparison, and Hex.SCM.fetch/3 doesn't verify freshly downloaded tarballs itself. When a mirror configured with HEX_MIRROR_URL or mirror_url serves altered bytes, the command prints them and exits successfully, while the same fetch with --output FILE fails with a checksum mismatch. Hex also prints diagnostics to standard output while the command runs: the body of a failed HTTP response from the update check or a registry fetch, and API warnings from the x-hex-message header. A mirror that answers one of those requests with an error whose body is a tar archive gets that archive written to standard output ahead of the verified tarball, so a pipeline that unpacks standard output extracts the mirror's files. This happens even when the checksum check then fails, because the archive is already on standard output. This issue affects hex: from 0.20.2 before 2.5.2.

Affected and fixed versions

Package / productAffectedFixedSource
hexpm hex>= 0.20.2, < 2.5.2—cvelist
hexpm hex>= d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c, < *—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-105280. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-105280.md
Affected: hexpm hex >= 0.20.2, < 2.5.2; hexpm hex >= d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c, < *
Fixed in: hexpm hex 2.5.2

Steps:
1. Search this machine and project for hexpm hex: 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-105280 being exploited?

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

How serious is CVE-2026-105280?

Medium: CVSS 6.9 (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-105280?

hexpm hex >= 0.20.2, < 2.5.2; hexpm hex >= d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c, < *.

Is there a fix for CVE-2026-105280?

Yes. Fixed in hexpm hex 2.5.2. Upgrade hex to 2.5.2 or later. Vendor workaround: Write the tarball to a file with --output FILE, which verifies the checksums, and read that file instead of standard output.

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

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