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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g exploit mitigation vendor-advisory
- https://github.com/simonsmith/cypress-image-snapshot/issues/15 exploit issue-tracking patch third-party-advisory
- https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4 patch
- https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product