Erlang hex: Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in hexpm hex allows a
Affects erlang-hexSource GCVE Database
Not known to be exploited · CVSS 2.3 Low.
Data as of 28 Oct 2026, 22:28 UTC
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10erlang-hexpkg:deb/ubuntu/erlang-hex?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSerlang-hexpkg:deb/ubuntu/erlang-hex?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSerlang-hexpkg:deb/ubuntu/erlang-hex?arch=source&distro=nobleOther threats | Affected
| 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
- ubuntu.com/security/CVE-2026-81856 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-81856 (opens in a new tab)
- github.com/hexpm/hex/security/advisories/GHSA-fpmj-3cxg-p766 (opens in a new tab)
- cna.erlef.org/cves/CVE-2026-81856.html (opens in a new tab)
- osv.dev/vulnerability/EEF-CVE-2026-81856 (opens in a new tab)
- github.com/hexpm/hex/commit/211303e3f68f5d3ce06450c1ff1a7a770a9ab236 (opens in a new tab)
- github.com/hexpm/hex/commit/dd3305ddf0032f6d0b468fd40dbbc3072bfcb8b8 (opens in a new tab)