# CVE-2021-46339: There is an Assertion 'litisvalidcesu8string (stringp, stringsize)' failed at /base/ecma-helpers-string.c(ecmanewecmastringfromutf8) in Jer…

- 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.64%, higher than 45% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-20T21:14:32.000Z
- Modified: 2026-06-17T04:14:46.183Z
- Weaknesses: CWE-617
- Assigned by: mitre

## Description

There is an Assertion 'lit_is_valid_cesu8_string (string_p, string_size)' failed at /base/ecma-helpers-string.c(ecma_new_ecma_string_from_utf8) in JerryScript 3.0.0.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- jerryscript jerryscript: 3.0.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/jerryscript-project/jerryscript/issues/4935> (exploit, issue-tracking, patch, third-party-advisory)

## Sources

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

---

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