CVE-2024-44930 — Serilog.Enrichers.ClientI…
MEDIUMFix: serilog-contrib/serilog-enrichers-clientinfo#38CVE-2024-44930 is a medium-severity (CVSS 6.5) Cross-site Scripting (XSS) vulnerability in Serilog.Enrichers.ClientInfo. A fix is available for Serilog.Enrichers.ClientInfo — see the affected versions and patch details below.
Serilog Client IP Spoofing vulnerability
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-44930.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
Serilog.Enrichers.ClientInfoReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
Serilog (before v2.1.0) contains a Client IP Spoofing vulnerability, which allows attackers to falsify their IP addresses in log files by specifying an arbitrary IP as a value of X-Forwarded-For or Client-Ip headers while performing HTTP requests.
It is not possible to configure Serilog.Enrichers.ClientInfo to not trust the X-Forwarded-For header.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | Serilog.Enrichers.ClientInfo | all versions | 2.1.0dotnet add package Serilog.Enrichers.ClientInfo --version 2.1.0 |
Affected Products
serilog-enrichers-clientinfoserilog-contribDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Serilog.Enrichers.ClientInfo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update Serilog.Enrichers.ClientInfo to 2.1.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-44930 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2024-44930 in your dependencies?
Find it across NuGet, including transitive dependencies.