# CVE-2021-33438: An issue was discovered in mjs (mJS: Restricted JavaScript engine), ES6 (JavaScript version 6).

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-26T12:09:09.000Z
- Modified: 2026-06-17T03:54:33.097Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

An issue was discovered in mjs (mJS: Restricted JavaScript engine), ES6 (JavaScript version 6). There is stack buffer overflow in json_parse_array() in mjs.c.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cesanta mjs: before 2.20.0

## References

- <https://github.com/cesanta/mjs/issues/158> (exploit, issue-tracking, patch, third-party-advisory)
- <https://gist.github.com/Clingto/bb632c0c463f4b2c97e4f65f751c5e6d> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-33438](https://www.cve.org/CVERecord?id=CVE-2021-33438), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-33438](https://nvd.nist.gov/vuln/detail/CVE-2021-33438), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-33438 · Whole record: https://cve.day/CVE-2021-33438.json · Rebuilt by cve.day 2026-11-25T22:58:07.725Z
