Intel

AIKIDO-2026-107940

usage_rules is vulnerable to Terminal Escape Sequence Injection

Terminal Escape Sequence InjectionCVE-2026-82710 Published Today

23

Low Risk

This Affects:

ELIXIRusage_rules
0.1.18 - 1.2.7
Fixed in 1.2.8
Are you affected? Scan for Free

TL;DR

The mix usage_rules.search_docs task queries search.hexdocs.pm and prints publisher controlled result fields such as title, package, ref, and highlight snippets to the terminal. A package published to Hex can embed ANSI and OSC escape sequences in its indexed documentation, and a search prints those sequences without stripping control characters. Those sequences can forge or hide output and, on terminals that support OSC 52, write to the clipboard. The fix adds a terminal_safe/1 helper that strips C0/C1 control characters from server supplied fields before printing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the mix usage_rules.search_docs task.

Background info

usage_rules is vulnerable to Terminal Escape Sequence Injection in versions 0.1.18 - 1.2.7.

How to fix this

Upgrade the usage_rules library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform