{"answers":{"affected":"2 open source packages ship an affected version, including @simonsmith/cypress-image-snapshot. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-38695 in the wild and no public exploit code.","fix":"Upgrade @simonsmith/cypress-image-snapshot to 8.0.2 or later.","what":"CVE-2023-38695 is a medium-severity path traversal vulnerability in simonsmith cypress-image-snapshot, published on 4 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-38695 and fix it if it is affected.\n\nWhat it is: CVE-2023-38695 is a medium-severity path traversal vulnerability in simonsmith cypress-image-snapshot, published on 4 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-38695 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @simonsmith/cypress-image-snapshot (npm): affected all versions; fixed in 8.0.2\n- @simonsmith/cypress-image-snapshot (npm): affected all versions; fixed in 8.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-38695/ (Markdown: https://insights.sbomify.com/CVE-2023-38695/index.md)","id":"CVE-2023-38695","markdown":"https://insights.sbomify.com/CVE-2023-38695/index.md","name":"CVE-2023-38695","record":{"aliases":["GHSA-vxjg-hchx-cc4g"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Cypress image snapshot library","requires_auth":"low_privilege","summary":"Attackers can manipulate snapshot names to access or modify files outside the project directory on the test machine.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cypress_image_snapshot","vendor":"simonsmith"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"cypress-image-snapshot vulnerable to insecure snapshot file names","id":"CVE-2023-38695","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":2,"n_references":4,"next":{"headline":"This CVE has been rejected because it is unclear whether the issue rests in the original repository `microsoft/ContosoAir`, the forked repos","id":"CVE-2023-38696"},"packages":[{"ecosystem":"npm","fixed":["8.0.2"],"introduced":["0"],"last_affected":[],"package":"@simonsmith/cypress-image-snapshot","purl":null,"source":"GHSA-vxjg-hchx-cc4g"},{"ecosystem":"npm","fixed":["8.0.2"],"introduced":["0"],"last_affected":[],"package":"@simonsmith/cypress-image-snapshot","purl":"pkg:npm/%40simonsmith/cypress-image-snapshot","source":"GHSA-vxjg-hchx-cc4g"}],"prev":{"headline":"Umbraco CMS vulnerable to possible injection of HTML in an unintended form","id":"CVE-2023-38694"},"products":["cypress-image-snapshot"],"published":"2023-08-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-04","vendors":["simonsmith"]},"summary":"Attackers can manipulate snapshot names to access or modify files outside the project directory on the test machine.","url":"https://insights.sbomify.com/CVE-2023-38695/"}