CVE-2026-81856: Terminal escape sequence injection in Hex via unneutralized server-supplied output
Noroxi assessment
Priority: Monitor (action score 9/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.43% (FIRST EPSS).
- Anyone who can reach it over the internet can trigger it. No account or password is required. No special conditions are required; it is repeatable.
- Fixed version: hexpm hex 2.5.2, 4a9a865c00add6985e04ce33e9c775df9cf8fc38, dd3305ddf0032f6d0b468fd40dbbc3072bfcb8b8.
Low priority for now. Upgrade to hexpm hex 2.5.2, 4a9a865c00add6985e04ce33e9c775df9cf8fc38, dd3305ddf0032f6d0b468fd40dbbc3072bfcb8b8 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Oct 12, 2026
- Updated
- Nov 11, 2026
- EPSS
- 0.4% · 38th percentile
- CWE
- CWE-150
Report tools
Action score
9
Low priority for now.
- CVSS
- 9 / 40 · 2.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · EEF
- 2.3
- NVD has not scored this yet; the score shown is the CNA’s.
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
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (EEF). Independent of NVD's CPE analysis and usually ahead of it.
hexpm hex
- 0.0.1 and later · before 2.5.2affected · semver
- 211303e3f68f5d3ce06450c1ff1a7a770a9ab236 and lateraffected · gitfixed in dd3305ddf0032f6d0b468fd40dbbc3072bfcb8b8, 4a9a865c00add6985e04ce33e9c775df9cf8fc38
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:13 | erlang-hex | from 0 | — |
| Debian:14 | erlang-hex | before 2.5.3-2 | 2.5.3-2 |
Same product
hexpm: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-96612Path traversal in Hex via unvalidated dependency app names30Monitor
- CVE-2026-105668Hex release-age cooldown is lifted package-wide when the locked release is retired28Monitor
- CVE-2026-105280Hex writes unverified package tarballs to standard output in mix hex.package fetch27Monitor
Published before and after this one in the same product
- ← EarlierCVE-2026-103503Oct 12, 2026 · Hex trusts its bundled CA certificates when cacerts_path is set23Monitor
- Later →CVE-2026-96618Oct 12, 2026 · Hex exhausts memory and disk on oversized or compressed responses from an untrusted mirror8Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| hexpm hex | 2.5.2 | Vendor (CNA) |
| hexpm hex | 4a9a865c00add6985e04ce33e9c775df9cf8fc38 | Vendor (CNA) |
| hexpm hex | dd3305ddf0032f6d0b468fd40dbbc3072bfcb8b8 | Vendor (CNA) |
| debian:erlang-hex | 2.5.3-2 · Debian:14 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- Fix recordedsame day
- TodayNov 13, 2026+32 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- Zach Danielreporter
- Eric Meadows-Jönssonremediation reviewer
- Jonatan Männchenremediation developer
Not on record for this CVE: variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- P
- Scope
- X
Weakness class (CWE)
CWE-150 · Improper Neutralization of Escape, Meta, or Control SequencesCVSS vector
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/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
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log
- SSVC exploitation— → none
- Exploit maturity— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (5 more)Show less
- github.com/hexpm/hex/commit/211303e3f68f5d3ce06450c1ff1a7a770a9ab236
- github.com/hexpm/hex/commit/4a9a865c00add6985e04ce33e9c775df9cf8fc38
- github.com/hexpm/hex/commit/dd3305ddf0032f6d0b468fd40dbbc3072bfcb8b8
- github.com/hexpm/hex/security/advisories/GHSA-fpmj-3cxg-p766
- osv.dev/vulnerability/EEF-CVE-2026-81856
Vendor advisories and official records. Exploit/PoC links are deliberately left out.