# CVE-2023-38695: cypress-image-snapshot vulnerable to insecure snapshot file names

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.99%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-08-01T16:59:40.000Z
- Modified: 2026-09-10T03:49:57.712Z
- Also known as: GHSA-vxjg-hchx-cc4g
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- simonsmith cypress-image-snapshot: <= 8.0.1
- @simonsmith/cypress-image-snapshot (npm): before 8.0.2
- simonsmith cypress_image_snapshot: before 8.0.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/simonsmith/cypress-image-snapshot/issues/15> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4> (patch, web)
- <https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-38695> (advisory)
- <https://github.com/simonsmith/cypress-image-snapshot> (package)

## Sources

- CVE List: [CVE-2023-38695](https://www.cve.org/CVERecord?id=CVE-2023-38695), CVE Terms of Use, modified 2024-10-04
- GitHub Advisory Database: [GHSA-vxjg-hchx-cc4g](https://github.com/advisories/GHSA-vxjg-hchx-cc4g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-38695](https://nvd.nist.gov/vuln/detail/CVE-2023-38695), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-38695 · Whole record: https://cve.day/CVE-2023-38695.json · Rebuilt by cve.day 2026-11-25T22:58:26.768Z
