What’s Vulnerable › Vulnerabilities
CVE-2023-38695: cypress-image-snapshot vulnerable to insecure snapshot file names
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-08-04 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- simonsmith cypress-image-snapshot: before 8.0.2 — fixed in 8.0.2
How to fix
Upgrade to a fixed version: simonsmith cypress-image-snapshot 8.0.2. Check the vendor advisory for mitigations.
References
- https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4
- https://github.com/simonsmith/cypress-image-snapshot/issues/15
- https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2
- https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g
- https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4
- https://github.com/simonsmith/cypress-image-snapshot/issues/15
- https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2
- https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g
Get alerted when CVE-2023-38695 or the next vulnerability affects your stack