Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-38695 EUVD-2023-2366GHSA-vxjg-hchx-cc4g

cypress-image-snapshot vulnerable to insecure snapshot file names

Published Aug 4, 2023 · Updated Oct 4, 2024 · 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.

Affected products

VendorProductAffectedFixed
simonsmith cypress-image-snapshot <= 8.0.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @simonsmith/cypress-image-snapshot < 8.0.2 8.0.2 GHSA-vxjg-hchx-cc4g

References