A vulnerability was found in janet-lang janet up to 1.40.1. It has been declared as problematic. This impacts the function janetc_if of the file src/core/specials.c. Executing a manipulation can lead to out-of-bounds read.

This vulnerability is registered as CVE-2026-2242. The attack needs to be launched locally. Furthermore, an exploit is available.

It is advisable to implement a patch to correct this issue.