CVE-2026-81856: Hexpm hex - Injection
- Cve: CVE-2026-81856
- Name: Hexpm hex - Injection
- 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.
- Impact: Malicious package publishers can inject terminal control sequences to forge output, conceal real output, or write to clipboard, misleading users and potentially causing security issues.
- Remediation: Update to version 2.5.2 or later.
- Requirement type: none
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 2.3
- Cvss 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
- Epss score: 0.00435
- Epss percentile: 0.38296
- Assignee: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- Published at: 2026-10-12T16:17:05Z
- Age in days: 43
- Modified at: 2026-11-20T06:17:41Z
- Patch available: yes
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-81856
- Nvd status: deferred
- Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| hexpm:hex | >= 0.0.1, < 2.5.2 | no | cna | /v1/products/hexpm/hex |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| hexpm/hex | commit, fix, security_advisory | yes | /v1/repositories/hexpm/hex |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts