{"id":"CVE-2023-38695","state":"PUBLISHED","title":"cypress-image-snapshot vulnerable to insecure snapshot file names","description":"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","publishedAt":"2023-08-04T17:25:18.810Z","updatedAt":"2024-10-04T19:39:48.430Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["simonsmith cypress-image-snapshot"],"affected":[{"vendor":"simonsmith","product":"cypress-image-snapshot","versions":[{"version":"<= 8.0.1","status":"affected"}]}],"references":["https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g","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/releases/tag/8.0.2"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:06:08.715Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/38xxx/CVE-2023-38695.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-38695","state":"PUBLISHED","datePublished":"2023-08-04T17:25:18.810Z","dateUpdated":"2024-10-04T19:39:48.430Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-07-24T16:19:28.364Z"},"containers":{"cna":{"title":"cypress-image-snapshot vulnerable to insecure snapshot file names","descriptions":[{"lang":"en","value":"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"}],"affected":[{"vendor":"simonsmith","product":"cypress-image-snapshot","versions":[{"version":"<= 8.0.1","status":"affected"}]}],"references":[{"url":"https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g","name":"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","name":"https://github.com/simonsmith/cypress-image-snapshot/issues/15","tags":["x_refsource_MISC"]},{"url":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","name":"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","name":"https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-08-04T17:25:18.810Z"},"source":{"advisory":"GHSA-vxjg-hchx-cc4g","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g","name":"https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/simonsmith/cypress-image-snapshot/issues/15","name":"https://github.com/simonsmith/cypress-image-snapshot/issues/15","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","name":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2","name":"https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T17:46:56.567Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-04T19:39:39.519261Z","id":"CVE-2023-38695","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-04T19:39:48.430Z"}}]}}}