CVE-2023-38695
Medium
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.
SeverityMedium
CVSS6.5
Exploit probability—
ProductSimonsmith Cypress Image Snapshot
PublishedAug 4, 2023
First seenAug 4, 2023
Weakness typeCWE-22Path traversal
How to fix
Update
- simonsmith cypress_image_snapshot8.0.2 or later
- @simonsmith/cypress-image-snapshot8.0.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| simonsmith cypress_image_snapshot | v < 8.0.2 | 8.0.2 |
| @simonsmith/cypress-image-snapshotnpm | v < 8.0.2 | 8.0.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.