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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-22"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38695.json"
}{
"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"
},
{
"original_tag": "8.0.2",
"range": [
{
"fixed": "370f3d82798cb6ca7a268f7153a08353d67a3f96"
}
],
"source": "REFERENCES_TAG"
}
]
}