cypress-image-snapshot vulnerable to insecure snapshot file names
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| simonsmith | cypress-image-snapshot | up to 8.0.1 | — | No fix listed | CNA |
| — | @simonsmith/cypress-image-snapshot (npm) | before 8.0.2 | 8.0.2 | Patch available | GHSA-vxjg-hchx-cc4g |
- cypress-image-snapshot Vendorsimonsmith Affected up to 8.0.1 Fixed in — No fix listed CNA
- @simonsmith/cypress-image-snapshot (npm) Vendor— Affected before 8.0.2 Fixed in 8.0.2 Patch available GHSA-vxjg-hchx-cc4g
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:simonsmith:cypress_image_snapshot:*:*:*:*:*:node.js:*:* | before 8.0.2 | Vulnerable | simonsmith |
- cpe:2.3:a:simonsmith:cypress_image_snapshot:*:*:*:*:*:node.js:*:* Versions before 8.0.2 Vulnerable ·simonsmith
Remediation
- Fix · GHSA-vxjg-hchx-cc4g @simonsmith/cypress-image-snapshot (npm) Fixed in 8.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-38695
- 2026-10-03 Alias added: GHSA-vxjg-hchx-cc4g
References
Exploit 2
Patch 1
Sources
- CVE-2023-38695 · CVE Program
- CVE-2023-38695 · NVD
- FIRST EPSS
- GHSA-vxjg-hchx-cc4g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences