SEVERITY NOT PROVIDED

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-29. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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
We were not always careful to ensure that control characters in e.g. user IDs, were escaped. For instance, `sq verify` did not correctly sanitize the signer's user ID. An attacker could use this to embed ANSI cursor movement sequences in a user ID to overwrite a verification warning with fake "Fully authenticated" text thereby spoofing the signature verification result. Note: this attack can be used to modify the human readable output; it cannot be used to influence the control plane, like in the sigspoof attacks. <https://en.wikipedia.org/wiki/SigSpoof> This has been fixed by upgrading to the latest version of `sequoia-openpgp`, whose implementations of `Display` and `Debug` for `UserID` (as well as other data structures) escape any control characters.

References

Source records: RUSTSEC-2026-0616 (OSV.dev).