CVE-2026-82710: CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences in ash-project usage_rules
Description
Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in ash-project usage_rules allows a malicious package publisher to inject terminal control sequences into the output of mix usage_rules.search_docs. mix usage_rules.search_docs searches Hex documentation through search.hexdocs.pm, which indexes the documentation of every published package, and prints the matching results (title, package, type, doc reference, and highlighted snippets) to the terminal. The formatter in Mix.Tasks.UsageRules.SearchDocs interpolated those publisher-controlled fields verbatim, neutralizing no terminal control characters; the only transform it applied adds escape sequences rather than removing them. A malicious package can embed ANSI terminal escape sequences (cursor movement, line erase, carriage returns, OSC 52 clipboard writes) in its indexed documentation, so when a developer runs a search that surfaces those docs the sequences reach the terminal unchanged — forging the displayed hexdocs URL or a suggested command, hiding text, or writing to the clipboard. No authentication or privileged position is required; only publishing a package. This issue affects usage_rules: from 0.1.18 before 1.2.8.
CVSS v4.0
Score 2.3low
Affected software
ash-project
usage_rules
ash-project
usage_rules
cpe:2.3:a:ash-project:usage_rules:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the formatter in Mix.Tasks.UsageRules.SearchDocs interpolates publisher-controlled fields verbatim without neutralizing terminal control characters. Instead of removing escape sequences, it adds escape sequences, allowing malicious packages to embed ANSI terminal escape sequences such as cursor movement, line erase, carriage returns, and OSC 52 clipboard writes in their indexed documentation. When a developer runs a search that surfaces these malicious docs, the escape sequences are rendered unchanged in the terminal, enabling manipulation of the terminal display or clipboard. This affects usage_rules versions from 0.1.18 before 1.2.8.
Potential Impact
A malicious package publisher can cause terminal output to be manipulated when developers run documentation searches, potentially forging URLs, hiding or altering displayed text, or writing arbitrary data to the clipboard. This could mislead users or cause unintended clipboard content changes. No authentication or privileged access is required, only the ability to publish a package. The CVSS score is low (2.3), reflecting limited impact and required user interaction.
Mitigation Recommendations
No official patch or remediation level is provided in the advisory. Users should upgrade to usage_rules version 1.2.8 or later once available, as the vulnerability affects versions before 1.2.8. Until then, be cautious when running mix usage_rules.search_docs commands that display documentation from untrusted or unknown package sources. Monitor vendor advisories for updates and patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-09-07T20:30:01.990Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9f5c5dacd9273b49b3db8b
Added to database: 09/08/2026, 00:52:45 UTC
Last enriched: 09/08/2026, 01:07:50 UTC
Last updated: 10/22/2026, 01:15:26 UTC
Views: 88
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.