Skip to main content
CVE-2026-81856VulnerabilityPublished Updated

Erlang hex: Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in hexpm hex allows a

Affects erlang-hexSource GCVE Database

0
Authoritative record:CVE-2026-81856· Low 2.3

Not known to be exploited · CVSS 2.3 Low.

Data as of 28 Oct 2026, 22:28 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10erlang-hexpkg:deb/ubuntu/erlang-hex?arch=source&distro=stonkingOther threatsAffected
  • =2.0.6-2build1
  • =2.5.1-2
Fixed in–
Ubuntu 26.04 LTSerlang-hexpkg:deb/ubuntu/erlang-hex?arch=source&distro=resoluteOther threatsAffected
  • =2.0.6-2
  • =2.0.6-2build1
Fixed in–
Ubuntu 24.04 LTSerlang-hexpkg:deb/ubuntu/erlang-hex?arch=source&distro=nobleOther threatsAffected
  • =2.0.5-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in hexpm hex allows a malicious package publisher or a hostile repository server to inject terminal control sequences into the output of Mix tasks. Hex prints strings supplied by the package repository and the documentation search service straight to the terminal through Hex.Shell.info/1 and Hex.Shell.error/1, neutralizing no control characters. Affected sinks span package metadata and configuration snippets in mix hex.info, search results in mix hex.package search and mix hex.search, owner and organization listings, publish and sponsor URLs, the authenticated username in mix hex.user, policy identities in mix hex.policy, and API error bodies rendered by Hex.Utils.print_error_result/1. A malicious package can embed ANSI escape sequences (cursor movement, line erase, carriage returns, OSC 52 clipboard writes) or Unicode bidirectional overrides in any of those fields, so the bytes reach the terminal unchanged, forging displayed URLs, package descriptions and suggested commands, concealing real output, or writing to the clipboard. No authentication or privileged position is required; only publishing a package. This issue affects hex: from 0.0.1 before 2.5.2.

References

Community reviews

Loading reviews…