CVE-2022-4877
NixOS vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in snoyberg keter versions up to 1.8.1, specifically affecting the host field in the Keter/Proxy.hs file. The vulnerability was disclosed on January 5, 2023, and was assigned CVE-2022-4877. The issue allows an attacker to inject malicious JavaScript or HTML code through the host field, which could be used to trick users (VulDB).

Technical details

The vulnerability stems from improper neutralization of user-controllable input in the host field before it is placed in output that is served to other users. The issue is classified as CWE-79 (Cross-site Scripting). The host field could be spoofed to include malicious JavaScript or HTML content, which would then be rendered in the default response for unrecognized hosts (GitHub Commit).

Impact

The vulnerability affects the integrity of the system by allowing attackers to inject and execute arbitrary web scripts or HTML in the context of other users' browsers. This could potentially lead to theft of sensitive information, session hijacking, or other malicious actions performed in the context of the affected user's session (VulDB).

Mitigation and workarounds

The vulnerability has been fixed in version 1.8.2 of snoyberg keter. The fix involves properly escaping HTML content in the host field before rendering it in the response. Users are strongly recommended to upgrade to version 1.8.2 or apply the patch d41f3697926b231782a3ad8050f5af1ce5cc40b7 (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management