Skip to content

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

MediumCVSS 6.5 EPSS 0.99%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
simonsmith @simonsmith/cypress-image-snapshot(npm) < 8.0.2; <= 8.0.1 8.0.2 Fixed
simonsmith cypress image snapshot < 8.0.2 8.0.2 Fixed
simonsmith @simonsmith/cypress-image-snapshot = <= 8.0.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
simonsmith @simonsmith/cypress-image-snapshot(npm) <= 8.0.1 No fix listed
simonsmith @simonsmith/cypress-image-snapshot = <= 8.0.1 No fix listed
simonsmith cypress image snapshot < 8.0.2 8.0.2
simonsmith @simonsmith/cypress-image-snapshot(npm) < 8.0.2 8.0.2

References