{"id":"CVE-2023-38695","published":"2023-08-04T17:25:18Z","modified":"2024-10-04T19:39:48Z","title":"cypress-image-snapshot vulnerable to insecure snapshot file names","vendor":"simonsmith","product":"cypress-image-snapshot","tier":"tail","description":{"text":"cypress-image-snapshot shows visual regressions in Cypress with jest-image-snapshot. Prior to version 8.0.2, it's possible for a user to pass a relative file path for the snapshot name and reach outside of the project directory into the machine running the test. This issue has been patched in version 8.0.2.\n\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00982,"percentile":0.61073,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/simonsmith/cypress-image-snapshot/issues/15","tags":["x_refsource_MISC"]},{"url":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","tags":["x_refsource_MISC"]},{"url":"https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":12.21},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"simonsmith","affectedVersions":[{"vendor":"simonsmith","product":"cypress-image-snapshot","versions":["<= 8.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-04T19:39:39.519261Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@simonsmith/cypress-image-snapshot","vulnerableRanges":["<8.0.2"],"patched":["8.0.2"],"from":["GHSA-vxjg-hchx-cc4g"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal weakness in the cypress-image-snapshot product by simonsmith, where the snapshot name is not restricted to the project directory. An attacker who can supply a snapshot name with a relative file path can reach files outside the project on the machine running the test, with network access and low-privilege authentication required and no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:26Z"},"euvd":{"id":"EUVD-2023-2366","exploited":false,"provenance":"source"}}