CVE-2025-67487: Static web server Path Traversal Vulnerability
MODERATECVE-2025-67487 is a MODERATE path traversal vulnerability (CWE-61: UNIX Symbolic Link (Symlink) Following) affecting Static web server libraries in the crates.io ecosystem. The issue involves static web server vulnerable to a symbolic link path traversal. Remediation is available by upgrading affected packages to version 2.40.1.
CVE-2025-67487 at a Glance
How to Fix CVE-2025-67487
To remediate this vulnerability, upgrade all affected Static web server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade static-web-server to 2.40.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for static-web-server
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-67487, inspect your project dependencies for Static web server:
inspect dependencies for static-web-server
Analyze the terminal output to locate any version of Static web server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.40.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-61: UNIX Symbolic Link (Symlink) Following, where the product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. this could allow an attacker to cause the product to operate on unauthorized files. In Static web server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-67487 Affected Static web server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
static-web-server
|
crates.io |
< 2.40.1
|
2.40.1
|
References
Frequently Asked Questions
What is CVE-2025-67487?
Which Static web server versions are affected?
What version fixes CVE-2025-67487?
Is static-web-server affected?
What CWE is associated with CVE-2025-67487?
How can I check crates.io dependencies for CVE-2025-67487?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-459f-x8vq-xjjm",
"modified" : "2025-12-09T19:17:06Z",
"published" : "2025-12-08T22:18:00Z",
"aliases" : [ "CVE-2025-67487" ],
"summary" : "Static Web Server vulnerable to a symbolic link path traversal",
"details" : "### Summary\n\nSymbolic links (_symlinks_) could be used to access files or directories outside the intended web root folder.\n\n### Details\n\nSWS generally does not prevent symlinks from escaping the web server’s root directory. Therefore, if a malicious actor gains access to the web server’s root directory, they could create symlinks to access other files outside the designated web root folder either by URL or via the directory listing.\n\n### PoC\n\n- Serve a directory (web root) with SWS.\n- Create a symlink inside the web root that points to a file outside the web root.\n e.g. `ln -s escape.txt $HOME/.bashrc`\n- Open `http://localhost/escape.txt` in your browser.\n- The file content will be served.\n\n### Impact\n\nAny web server that runs with elevated privileges (e.g., root/administrator) and handles user-supplied file uploads is primarily impacted.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "static-web-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.40.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.40.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/static-web-server/static-web-server/security/advisories/GHSA-459f-x8vq-xjjm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67487"
}, {
"type" : "WEB",
"url" : "https://github.com/static-web-server/static-web-server/commit/308f0d26ceb9c2c8bd219315d0f53914763357f2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/static-web-server/static-web-server"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-61" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-08T22:18:00Z",
"nvd_published_at" : "2025-12-09T16:18:24Z"
}
}