CVE-2023-38695
MEDIUM 6.5CVSS 3.1@simonsmith/cypress-image-snapshothas fix for insecure snapshot file names
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.
- Published
- 4 Aug 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-vxjg-hchx-cc4g
- Sources
- NVDJSONOSV GHSA-vxjg-hchx-cc4gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | simonsmith | cypress_image_snapshotcpe:2.3:a:simonsmith:cypress_image_snapshot:*:*:*:*:*:node.js:*:* |
< 8.0.2 | 8.0.2 |
| OSV | npm | @simonsmith/cypress-image-snapshot | < 8.0.2 | 8.0.2 |
References
- https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4 · Patch, WEB
- https://github.com/simonsmith/cypress-image-snapshot/issues/15 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2 · Release Notes, WEB
- https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-38695 · ADVISORY
- https://github.com/simonsmith/cypress-image-snapshot · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 4 Aug 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Aug 2023)