There is a vulnerability in the strided image data parsing code in the emscripten wrapper for libheif. An attacker could exploit this through a crafted image file to cause a buffer overflow in linear memory during a memcpy call.
https://govtech-csg.github.io/security-advisories/2023/02/24/CVE-2023-0996.html