{"id":"GHSA-vxjg-hchx-cc4g","revision":"199ce882c4c84d1cb55ae86e519edb7b","records":[{"revision":"199ce882c4c84d1cb55ae86e519edb7b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vxjg-hchx-cc4g","aliases":["CVE-2023-38695"],"title":"@simonsmith/cypress-image-snapshothas fix for insecure snapshot file names","description":"### Impact\nIt'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. Example:\n\n```js\n  cy.get('h1').matchImageSnapshot('../../../ignore-relative-dirs')\n```\nThe above will create an `ignore-relative-dirs.png` three levels up\n\n### Patches\nFixed in `8.0.2`\n\n### Workarounds\nValidate all the existing uses of `matchImageSnapshot` to ensure correct use of the filename argument. Example:\n\n```js\n    // snapshot name will be the test title\n    cy.matchImageSnapshot();\n\n    // snapshot name will be the name passed in\n    cy.matchImageSnapshot('login');\n```\n\n### References\nhttps://github.com/simonsmith/cypress-image-snapshot/issues/15\n","state":0,"publishedAt":"2023-08-01T16:59:40+00:00","modifiedAt":"2026-09-10T03:49:57.7125258+00:00","affected":[{"ecosystem":"npm","name":"@simonsmith/cypress-image-snapshot","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"8.0.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g","https://nvd.nist.gov/vuln/detail/CVE-2023-38695","https://github.com/simonsmith/cypress-image-snapshot/issues/15","https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","https://github.com/simonsmith/cypress-image-snapshot","https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2"],"sourceUrl":"https://github.com/advisories/GHSA-vxjg-hchx-cc4g","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vxjg-hchx-cc4g","identifiers":["GHSA-vxjg-hchx-cc4g","CVE-2023-38695"]},"retained":false,"historicalAffected":[]}],"coverage":[]}