Medium, CVSS 6.5npmAmendedPublished
@simonsmith/cypress-image-snapshothas fix for insecure snapshot file names
CVE-2023-38695 · GHSA-vxjg-hchx-cc4g
- Affected
- npm @simonsmith/cypress-image-snapshot <= 8.0.1
- Fixed in
- 8.0.2· Vendor fix available
- Issue
- Impact 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. Example: The above will create an ignore-relative-dirs.png three levels up Patches Fixed in 8.0.2 Workarounds Validate all the existing uses of matchImageSnapshot to ensure correct use of the filename argument. Example: References https://github.com/simonsmith/cypress-image-snapshot/issues/15
Recommended action: Upgrade to 8.0.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.