CVE-2026-121478: Unescaped control characters in user IDs enable terminal output spoofing
Published 2026-11-27 · Updated 2026-11-29 · Also known as RUSTSEC-2026-0616
Summary
Unescaped control characters in user IDs allow attackers to embed ANSI cursor movement sequences, enabling terminal output spoofing. Engineering and security teams using the sqz crate should update their dependencies immediately.
Who is affected
An attacker can manipulate terminal output during operations like `sq verify` by embedding ANSI escape sequences in the signer's user ID to overwrite verification warnings with fake authentication text. This modifies human-readable output to spoof signature verification results, though it cannot influence the control plane.
Exploitability
The vulnerability allows visual spoofing of verification output via specially crafted user IDs containing control characters. CVSS vector, base score, and EPSS are not documented, and CISA KEV status is no.
Remediation
- Upgrade the sqz package on crates.io to version 0.2.0 or later.
- Ensure the underlying sequoia-openpgp dependency correctly implements escaping for control characters in UserID structures.
How to check your project
- Check Cargo.lock or Cargo.toml to determine if the project depends on the crates.io package 'sqz' within the affected version range 0.0.0-0 up to 0.2.0.
Automated analysis of the published advisory data, generated 2026-11-29. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | sqz |
>= 0.0.0-0, < 0.2.0 | 0.2.0 | cargo update -p sqz --precise 0.2.0 |
FAQ
What packages are affected by CVE-2026-121478?
The crates.io package 'sqz' introduced in version 0.0.0-0 and fixed in version 0.2.0 is affected.
Can this vulnerability influence the control plane?
No, this attack can only be used to modify human-readable terminal output and cannot influence the control plane.
How was the vulnerability fixed?
It was fixed by upgrading to the latest version of sequoia-openpgp, which escapes any control characters in the Display and Debug implementations for UserID and other data structures.
Original advisory description
References
- PACKAGE https://crates.io/crates/sqz
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0616.html
- WEB https://gitlab.com/sequoia-pgp/sequoia-sq/-/blob/sqz/v0.2.0/lib/NEWS
Source records: RUSTSEC-2026-0616 (OSV.dev).