Description
powerlevel10k fails to neutralize control characters in the package.json version field when rendering the package prompt segment. Attackers can inject raw escape bytes in the version string to emit arbitrary terminal control sequences on each prompt render when the shell enters affected directories.
Severity (CVSS)
| Base score | 4.8 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-150 — Improper Neutralization of Escape, Meta, or Control Sequences
Affected products
| Vendor | Product | Versions |
|---|---|---|
| romkatv | powerlevel10k | 0 to <=1.20.0 |
References
- https://github.com/romkatv/powerlevel10k/issues/2961 (issue-tracking)
- https://github.com/romkatv/powerlevel10k (product)
- https://github.com/romkatv/powerlevel10k/commit/58e13d16a50e1d6908e39e20a670896808ccf350 (patch)
- https://github.com/romkatv/powerlevel10k/blob/master/internal/p10k.zsh (technical-description)
- https://www.vulncheck.com/advisories/powerlevel10k-control-character-injection-via-package-json-version (third-party-advisory)
Generated from the official CVE List on 18 Aug 2026 07:05 UTC.