Skip to content
Heist/ feed
Back to feed
Medium

cypress-image-snapshot vulnerable to insecure snapshot file names

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-38695
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:01 UTC · Revision 1

Source evidence

cypress-image-snapshot vulnerable to insecure snapshot file names

core-osv · Original source

Published 4 Aug 2023, 17:25 UTC

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.

osv:CVE-2023-38695
Complete source record
{
  "id": "03ba1c0489d677619d8691597b8db7aa3838c2457b3572be8f0f643930d576e9",
  "url": "https://osv.dev/vulnerability/CVE-2023-38695",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "cypress-image-snapshot vulnerable to insecure snapshot file names",
    "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.",
    "evidence": "osv:CVE-2023-38695",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-38695",
      "aliases": [
        "CVE-2023-38695",
        "GHSA-vxjg-hchx-cc4g"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/simonsmith/cypress-image-snapshot",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "370f3d82798cb6ca7a268f7153a08353d67a3f96"
                },
                {
                  "fixed": "ef49519795daf5183f4fac6f3136e194f20f39f4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:simonsmith:cypress_image_snapshot:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "8.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ef49519795daf5183f4fac6f3136e194f20f39f4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "370f3d82798cb6ca7a268f7153a08353d67a3f96"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "8.0.2"
                  }
                ]
              }
            }
          ],
          "versions": [
            "8.0.1",
            "8.0.0",
            "7.0.0",
            "7.0.0-beta.1",
            "7.0.0-beta.2",
            "7.0.0-beta.3",
            "6.1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-38695.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.066942806Z",
      "provider": "osv",
      "references": [
        "https://github.com/simonsmith/cypress-image-snapshot/releases/tag/8.0.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38695.json",
        "https://github.com/simonsmith/cypress-image-snapshot/security/advisories/GHSA-vxjg-hchx-cc4g",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-38695",
        "https://github.com/simonsmith/cypress-image-snapshot/issues/15",
        "https://github.com/simonsmith/cypress-image-snapshot/commit/ef49519795daf5183f4fac6f3136e194f20f39f4"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38695.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-38695",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488050,
  "published_at": "2023-08-04T17:25:18.81+00:00"
}