{"id":"CVE-2023-38695","summary":"cypress-image-snapshot vulnerable to insecure snapshot file names","details":"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","aliases":["GHSA-vxjg-hchx-cc4g"],"modified":"2026-08-12T03:51:11.515100351Z","published":"2023-08-04T17:25:18.810Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38695.json"},"references":[{"type":"WEB","url":"https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38695.json"},{"type":"ADVISORY","url":"https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38695"},{"type":"REPORT","url":"https://github.com/simonsmith/cypress-image-snapshot/issues/15"},{"type":"FIX","url":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/simonsmith/cypress-image-snapshot","events":[{"introduced":"0"},{"fixed":"370f3d82798cb6ca7a268f7153a08353d67a3f96"},{"fixed":"ef49519795daf5183f4fac6f3136e194f20f39f4"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:simonsmith:cypress_image_snapshot:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"8.0.2"}]}}],"versions":["8.0.1","8.0.0","7.0.0","7.0.0-beta.1","7.0.0-beta.2","7.0.0-beta.3","6.1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-38695.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}