CVE-2023-38695
Simonsmith Cypress Image Snapshot vulnerability
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
Cypress Image Snapshot. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Simonsmith Cypress Image Snapshot runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g · Exploit
- github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39 · Patch
- github.com/simonsmith/cypress-image-snapshot/issues/15 · Exploit
- github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2
- nvd.nist.gov/vuln/detail/CVE-2023-38695
- cve.org/CVERecord?id=CVE-2023-38695
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.