Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| romkatv / powerlevel10k | affected 0 through 1.20.0 |
CWE
CWE-150
References
- https://github.com/romkatv/powerlevel10k/issues/2961
- https://github.com/romkatv/powerlevel10k
- https://github.com/romkatv/powerlevel10k/commit/58e13d16a50e1d6908e39e20a670896808ccf350
- https://github.com/romkatv/powerlevel10k/blob/master/internal/p10k.zsh
- https://www.vulncheck.com/advisories/powerlevel10k-control-character-injection-via-package-json-version
ADP enrichment
No English description supplied.
No references supplied.