{"api_version":"1","generated_at":"2026-07-23T14:18:13+00:00","cve":"CVE-2023-38695","urls":{"html":"https://cve.report/CVE-2023-38695","api":"https://cve.report/api/cve/CVE-2023-38695.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-38695","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-38695"},"summary":{"title":"CVE-2023-38695","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-08-04 18:15:00","updated_at":"2023-08-09 13:18:00"},"problem_types":["CWE-22"],"metrics":[],"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","refsource":"MISC","tags":[],"title":"Fix for insecure snapshot file names · Advisory · simonsmith/cypress-image-snapshot · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","name":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","refsource":"MISC","tags":[],"title":"fix: sanitise snapshot filenames · simonsmith/cypress-image-snapshot@ef49519 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"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","refsource":"MISC","tags":[],"title":"Release 8.0.2 · simonsmith/cypress-image-snapshot · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/simonsmith/cypress-image-snapshot/issues/15","name":"https://github.com/simonsmith/cypress-image-snapshot/issues/15","refsource":"MISC","tags":[],"title":"[SECURITY] Snapshot names not sanitized · Issue #15 · simonsmith/cypress-image-snapshot · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-38695","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38695","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"38695","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"simonsmith","cpe5":"cypress_image_snapshot","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-38695","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","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"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","cweId":"CWE-22"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"simonsmith","product":{"product_data":[{"product_name":"cypress-image-snapshot","version":{"version_data":[{"version_affected":"=","version_value":"<= 8.0.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g","refsource":"MISC","name":"https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g"},{"url":"https://github.com/simonsmith/cypress-image-snapshot/issues/15","refsource":"MISC","name":"https://github.com/simonsmith/cypress-image-snapshot/issues/15"},{"url":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4","refsource":"MISC","name":"https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4"},{"url":"https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2","refsource":"MISC","name":"https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2"}]},"source":{"advisory":"GHSA-vxjg-hchx-cc4g","discovery":"UNKNOWN"},"impact":{"cvss":[{"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"}]}},"nvd":{"publishedDate":"2023-08-04 18:15:00","lastModifiedDate":"2023-08-09 13:18:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:simonsmith:cypress_image_snapshot:*:*:*:*:*:node.js:*:*","versionEndExcluding":"8.0.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}