CVE-2022-42975
Homebrew vulnerability analysis and mitigation

Overview

socket/transport.ex in Phoenix before 1.6.14 contains a vulnerability in the wildcard check_origin functionality. The vulnerability allows attackers to bypass origin checks by registering a domain with a custom prefix of a target domain (Phoenix Commit).

Technical details

The vulnerability exists in the comparison logic for wildcard checkorigin patterns like "//*.other.com". The flawed implementation would incorrectly allow domains like api.any-other.com to pass origin checks, instead of properly restricting to only subdomains of the specified domain. The issue stems from insufficient validation of the subdomain dot prefix in the String.endswith? check (Phoenix Commit).

Impact

The impact is limited to applications using wildcard check_origin configurations. The vulnerability allows unauthenticated channel connections from unauthorized hosts. However, LiveView applications are unaffected by default due to the presence of CSRF tokens. Additionally, channels using token-based authentication would still require valid tokens, and the vulnerability does not allow access to cookies (Phoenix Commit).

Mitigation and workarounds

The vulnerability was fixed in Phoenix version 1.6.14 by modifying the wildcard comparison logic to properly validate the subdomain dot prefix. The patch ensures String.ends_with? check includes the proper domain validation (Phoenix Commit).

Additional resources


SourceThis report was generated using AI

Related Homebrew 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
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • firefox
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