Vulnerability Details : CVE-2023-38695
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.
Vulnerability category: Directory traversal
Products affected by CVE-2023-38695
- cpe:2.3:a:simonsmith:cypress_image_snapshot:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-38695
0.11%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 45 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-38695
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
2.8
|
3.6
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
2.8
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2023-38695
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-38695
-
https://github.com/simonsmith/cypress-image-snapshot/issues/15
[SECURITY] Snapshot names not sanitized · Issue #15 · simonsmith/cypress-image-snapshot · GitHubExploit;Issue Tracking;Patch;Third Party Advisory
-
https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4
fix: sanitise snapshot filenames · simonsmith/cypress-image-snapshot@ef49519 · GitHubPatch
-
https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g
Fix for insecure snapshot file names · Advisory · simonsmith/cypress-image-snapshot · GitHubExploit;Mitigation;Vendor Advisory
-
https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2
Release 8.0.2 · simonsmith/cypress-image-snapshot · GitHubRelease Notes
Jump to