{"id":"RUSTSEC-2026-0277","revision":"46c38e499f6b4e7080dae4024faaf80c","records":[{"revision":"46c38e499f6b4e7080dae4024faaf80c","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0277","aliases":["GHSA-72g6-wgrg-vhm7","RUSTSEC-2026-0276"],"title":"Path traversal in apimock-server's file-serving fallback","description":"The file-serving fallback joined a request-derived path onto the\nconfigured response directory and checked only that the result existed,\nnever that it stayed inside that directory. A request containing a raw\n`..` segment could read any file readable by the process, returned with\nHTTP 200.\n\nRead-only: no write, no code execution.\n\nExposure depends on the bind address. The default is `127.0.0.1`;\ndeployments binding `0.0.0.0` or a LAN address are reachable from the\nnetwork. Most HTTP clients normalise `..` away before sending, so\nreaching it requires a client that does not.\n\nAll published versions before 5.19.1 are affected. Fixed in 5.19.1 by\ncanonicalising each resolved path and rejecting anything outside its\nbase directory.\n\n**This advisory also covers `apimock` 5.x**, which depends on\n`apimock-server`. `apimock` 4.x predates the crate split and carries its\nown advisory for the same issue, fixed in 4.8.1.","state":0,"publishedAt":"2026-08-26T12:00:00+00:00","modifiedAt":"2026-09-02T09:10:39.4500162+00:00","affected":[{"ecosystem":"crates.io","name":"apimock-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"5.19.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null}],"references":["https://crates.io/crates/apimock-server","https://rustsec.org/advisories/RUSTSEC-2026-0277.html","https://github.com/apimokka/apimock-rs/commit/ff0dd152ecfccb3bf00e15cc92bd4d57e485c854"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0277","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0277","identifiers":["RUSTSEC-2026-0277","GHSA-72g6-wgrg-vhm7","RUSTSEC-2026-0276"]},"retained":false,"historicalAffected":[]}],"coverage":[]}