Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @simonsmith/cypress-image-snapshot
  4. ›
  5. CVE-2023-38695

CVE-2023-38695: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

August 4, 2023 (updated August 9, 2023)

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.

References

  • github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4
  • github.com/simonsmith/cypress-image-snapshot/issues/15
  • github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2
  • github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g
  • nvd.nist.gov/vuln/detail/CVE-2023-38695

Code Behaviors & Features

Detect and mitigate CVE-2023-38695 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.0.2

Fixed versions

  • 8.0.2

Solution

Upgrade to version 8.0.2 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@simonsmith/cypress-image-snapshot/CVE-2023-38695.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.