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.
References (4)
Core 4
Core References
Exploit, Mitigation, Vendor Advisory x_refsource_confirm
https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/simonsmith/cypress-image-snapshot/issues/15
Patch x_refsource_misc
https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4
Release Notes x_refsource_misc
https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2
Scores
CVSS v3
6.5
EPSS
0.0080
EPSS Percentile
51.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (2)
simonsmith/cypress-image-snapshot
0 - 8.0.2npm
simonsmith/cypress_image_snapshot
< 8.0.2
Published
Aug 04, 2023
Tracked Since
Feb 18, 2026