JerryscriptCVEs & Vulnerabilities

98 CVEs affecting Jerryscript products, tracked from the National Vulnerability Database, with CVSS/EPSS scores and exploitation status.

Most Affected Products

jerryscript 98
CVE-2021-46350MEDIUM

There is an Assertion 'ecma_is_value_object (value)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46349MEDIUM

There is an Assertion 'type == ECMA_OBJECT_TYPE_GENERAL || type == ECMA_OBJECT_TYPE_PROXY' failed at /jerry-core/ecma/operations/ecma-objects.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46348MEDIUM

There is an Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed at /jerry-core/ecma/base/ecma-literal-storage.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46347MEDIUM

There is an Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at /jerry-core/ecma/operations/ecma-objects.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46346MEDIUM

There is an Assertion 'local_tza == ecma_date_local_time_zone_adjustment (date_value)' failed at /jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.c(ecma_builtin_date_prototype_dispatch_set):421 in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46345MEDIUM

There is an Assertion 'cesu8_cursor_p == cesu8_end_p' failed at /jerry-core/lit/lit-strings.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46344MEDIUM

There is an Assertion 'flags & PARSER_PATTERN_HAS_REST_ELEMENT' failed at /jerry-core/parser/js/js-parser-expr.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46343MEDIUM

There is an Assertion 'context_p->token.type == LEXER_LITERAL' failed at /jerry-core/parser/js/js-parser-expr.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46342MEDIUM

There is an Assertion 'ecma_is_lexical_environment (obj_p) || !ecma_op_object_is_fast_array (obj_p)' failed at /jerry-core/ecma/base/ecma-helpers.c in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46340MEDIUM

There is an Assertion 'context_p->stack_top_uint8 == SCAN_STACK_TRY_STATEMENT || context_p->stack_top_uint8 == SCAN_STACK_CATCH_STATEMENT' failed at /parser/js/js-scanner.c(scanner_scan_statement_end) in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46339MEDIUM

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.

21 Jan 2022
5.5
CVSS
CVE-2021-46338MEDIUM

There is an Assertion 'ecma_is_lexical_environment (object_p)' failed at /base/ecma-helpers.c(ecma_get_lex_env_type) in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46337MEDIUM

There is an Assertion 'page_p != NULL' failed at /parser/js/js-parser-mem.c(parser_list_get) in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46336MEDIUM

There is an Assertion 'opts & PARSER_CLASS_LITERAL_CTOR_PRESENT' failed at /parser/js/js-parser-expr.c(parser_parse_class_body) in JerryScript 3.0.0.

21 Jan 2022
5.5
CVSS
CVE-2021-46170HIGH

An issue was discovered in JerryScript commit a6ab5e9. There is an Use-After-Free in lexer_compare_identifier_to_string in js-lexer.c file.

15 Jan 2022
7.5
CVSS
CVE-2021-26199MEDIUM

An issue was discovered in JerryScript 2.4.0. There is a heap-use-after-free in ecma_bytecode_ref in ecma-helpers.c file.

11 Jun 2021
6.5
CVSS
CVE-2021-26198MEDIUM

An issue was discovered in JerryScript 2.4.0. There is a SEVG in ecma_deref_bigint in ecma-helpers.c file.

11 Jun 2021
6.5
CVSS
CVE-2021-26197MEDIUM

An issue was discovered in JerryScript 2.4.0. There is a SEGV in main_print_unhandled_exception in main-utils.c file.

11 Jun 2021
6.5
CVSS
CVE-2021-26195HIGH

An issue was discovered in JerryScript 2.4.0. There is a heap-buffer-overflow in lexer_parse_number in js-lexer.c file.

11 Jun 2021
8.8
CVSS
CVE-2021-26194MEDIUM

An issue was discovered in JerryScript 2.4.0. There is a heap-use-after-free in ecma_is_lexical_environment in the ecma-helpers.c file.

11 Jun 2021
6.5
CVSS
CVE-2020-23323CRITICAL

There is a heap-buffer-overflow at re-parser.c in re_parse_char_escape in JerryScript 2.2.0.

11 Jun 2021
9.8
CVSS
CVE-2020-23322HIGH

There is an Assertion in 'context_p->token.type == LEXER_RIGHT_BRACE || context_p->token.type == LEXER_ASSIGN || context_p->token.type == LEXER_COMMA' in parser_parse_object_initializer in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23321CRITICAL

There is a heap-buffer-overflow at lit-strings.c:431 in lit_read_code_unit_from_utf8 in JerryScript 2.2.0.

11 Jun 2021
9.8
CVSS
CVE-2020-23320HIGH

There is an Assertion in 'context_p->next_scanner_info_p->type == SCANNER_TYPE_FUNCTION' in parser_parse_function_arguments in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23319HIGH

There is an Assertion in '(flags >> CBC_STACK_ADJUST_SHIFT) >= CBC_STACK_ADJUST_BASE || (CBC_STACK_ADJUST_BASE - (flags >> CBC_STACK_ADJUST_SHIFT)) <= context_p->stack_depth' in parser_emit_cbc_backward_branch in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23314HIGH

There is an Assertion 'block_found' failed at js-parser-statm.c:2003 parser_parse_try_statement_end in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23313HIGH

There is an Assertion 'scope_stack_p > context_p->scope_stack_p' failed at js-scanner-util.c:2510 in scanner_literal_is_created in JerryScript 2.2.0

11 Jun 2021
7.5
CVSS
CVE-2020-23312HIGH

There is an Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' failed at js-parser.c:2185 in parser_parse_source in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23311HIGH

There is an Assertion 'context_p->token.type == LEXER_RIGHT_BRACE || context_p->token.type == LEXER_ASSIGN || context_p->token.type == LEXER_COMMA' failed at js-parser-expr.c:3230 in parser_parse_object_initializer in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23310HIGH

There is an Assertion 'context_p->next_scanner_info_p->type == SCANNER_TYPE_FUNCTION' failed at js-parser-statm.c:733 in parser_parse_function_statement in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23309HIGH

There is an Assertion 'context_p->stack_depth == context_p->context_stack_depth' failed at js-parser-statm.c:2756 in parser_parse_statements in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23308HIGH

There is an Assertion 'context_p->stack_top_uint8 == LEXER_EXPRESSION_START' at js-parser-expr.c:3565 in parser_parse_expression in JerryScript 2.2.0.

11 Jun 2021
7.5
CVSS
CVE-2020-23306CRITICAL

There is a stack-overflow at ecma-regexp-object.c:535 in ecma_regexp_match in JerryScript 2.2.0.

11 Jun 2021
9.8
CVSS
CVE-2020-23303CRITICAL

There is a heap-buffer-overflow at jmem-poolman.c:165 in jmem_pools_collect_empty in JerryScript 2.2.0.

11 Jun 2021
9.8
CVSS
CVE-2020-23302CRITICAL

There is a heap-use-after-free at ecma-helpers-string.c:772 in ecma_ref_ecma_string in JerryScript 2.2.0

11 Jun 2021
9.8
CVSS
CVE-2020-29657CRITICAL

In JerryScript 2.3.0, there is an out-of-bounds read in main_print_unhandled_exception in the main-utils.c file.

9 Dec 2020
9.1
CVSS
CVE-2020-13991HIGH

vm/opcodes.c in JerryScript 2.2.0 allows attackers to hijack the flow of control by controlling a register.

25 Sep 2020
7.5
CVSS
CVE-2020-24345HIGH

JerryScript through 2.3.0 allows stack consumption via function a(){new new Proxy(a,{})}JSON.parse("[]",a). NOTE: the vendor states that the problem is the lack of the --stack-limit option

13 Aug 2020
7.8
CVSS
CVE-2020-24344HIGH

JerryScript through 2.3.0 has a (function({a=arguments}){const arguments}) buffer over-read.

13 Aug 2020
7.1
CVSS
CVE-2020-14163HIGH

An issue was discovered in ecma/operations/ecma-container-object.c in JerryScript 2.2.0. Operations with key/value pairs did not consider the case where garbage collection is triggered after the key operation but before the value operation, as demonstrated by improper read access to memory in ecma_gc_set_object_visited in ecma/base/ecma-gc.c.

16 Jun 2020
7.5
CVSS
CVE-2020-13649HIGH

parser/js/js-scanner.c in JerryScript 2.2.0 mishandles errors during certain out-of-memory conditions, as demonstrated by a scanner_reverse_info_list NULL pointer dereference and a scanner_scan_all assertion failure.

28 May 2020
7.5
CVSS
CVE-2020-13623HIGH

JerryScript 2.2.0 allows attackers to cause a denial of service (stack consumption) via a proxy operation.

27 May 2020
7.5
CVSS
CVE-2020-13622HIGH

JerryScript 2.2.0 allows attackers to cause a denial of service (assertion failure) because a property key query for a Proxy object returns unintended data.

27 May 2020
7.5
CVSS
CVE-2019-1010176CRITICAL

JerryScript commit 4e58ccf68070671e1fff5cd6673f0c1d5b80b166 is affected by: Buffer Overflow. The impact is: denial of service and possibly arbitrary code execution. The component is: function lit_char_to_utf8_bytes (jerry-core/lit/lit-char-helpers.c:377). The attack vector is: executing crafted javascript code. The fixed version is: after commit 505dace719aebb3308a3af223cfaa985159efae0.

25 Jul 2019
9.8
CVSS
CVE-2018-1000636MEDIUM

JerryScript version Tested on commit f86d7459d195c8ba58479d1861b0cc726c8b3793. Analysing history it seems that the issue has been present since commit 64a340ffeb8809b2b66bbe32fd443a8b79fdd860 contains a CWE-476: NULL Pointer Dereference vulnerability in Triggering undefined behavior at jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c:598 (passing NULL to memcpy as 2nd argument) results in null pointer dereference (segfault) at jerry-core/jmem/jmem-heap.c:463 that can result in Crash due to segmentation fault. This attack appear to be exploitable via The victim must execute specially crafted javascript code. This vulnerability appears to have been fixed in after commit 87897849f6879df10e8ad68a41bf8cf507edf710.

20 Aug 2018
6.5
CVSS
CVE-2018-11419CRITICAL

An issue was discovered in JerryScript 1.0. There is a heap-based buffer over-read in the lit_read_code_unit_from_hex function via a RegExp("[\\u0") payload, related to re_parse_char_class in parser/regexp/re-parser.c.

24 May 2018
9.8
CVSS
CVE-2018-11418CRITICAL

An issue was discovered in JerryScript 1.0. There is a heap-based buffer over-read in the lit_read_code_unit_from_utf8 function via a RegExp("[\\u0020") payload, related to re_parse_char_class in parser/regexp/re-parser.c.

24 May 2018
9.8
CVSS
CVE-2017-18212CRITICAL

An issue was discovered in JerryScript 1.0. There is a heap-based buffer over-read in the lit_read_code_unit_from_hex function in lit/lit-char-helpers.c via a RegExp("[\x0"); payload.

2 Mar 2018
9.8
CVSS