CVE-2023-38695CWE-22

cypress-image-snapshot vulnerable to insecure snapshot file names

Medium · published August 4, 2023

CVSS v3.1
6.5
EPSS
1%
Percentile
62.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00989 · 62.2th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2023-08-04T17:25Z
EPSS history
Timeline
  • 04 AUG 17:25Z
    cypress-image-snapshot vulnerable to insecure snapshot file names
    cvelistv5