Bug 2549713 (CVE-2026-81856) - CVE-2026-81856 hex: hex: Terminal output spoofing via unescaped control sequences
Summary: CVE-2026-81856 hex: hex: Terminal output spoofing via unescaped control seque...
Keywords:
Status: NEW
Alias: CVE-2026-81856
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2560762 2560763 2560766 2560768 2560769 2560770 2560771 2560772 2560774 2560776 2560780 2560784 2560786 2560789 2560792 2560795 2560796 2560797 2560798 2560799 2560800 2560802 2560803 2560804 2560806 2560807 2560809 2560812 2560813 2560814 2560815 2560817 2560820 2560821 2560822 2560823 2560824 2559044 2559045 2560764 2560767 2560805 2560808 2560810 2560816 2560818
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-12 16:01 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:30 UTC (History)
94 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-12 16:01:39 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.