CVE-2023-38695 json
cypress-image-snapshot vulnerable to insecure snapshot file names
published 2023-08-01 3 y ago modified 2026-09-10 1 mo ago also GHSA-vxjg-hchx-cc4g , EUVD-2023-2366
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 62%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @simonsmith/cypress-image-snapshot 8.0.2
- simonsmith cypress_image_snapshot 8.0.2
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.99% chance of exploitation in the next 30 days, higher than 62% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/simonsmith/cypress-image-snapshot/issues/15 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @simonsmith/cypress-image-snapshot | <8.0.2 |
8.0.2 |
Affected products
- simonsmith cypress-image-snapshot
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4
web, patch
-
github.com
/simonsmith/cypress-image-snapshot/issues/15
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g
web, exploit, mitigation, vendor-advisory
-
github.com
/simonsmith/cypress-image-snapshot/releases/tag/8.0.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-38695
advisory
-
github.com
/simonsmith/cypress-image-snapshot
package
Sources
- CVE List CVE-2023-38695
- GitHub Advisory GHSA-vxjg-hchx-cc4g
- NVD CVE-2023-38695
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.