CVE-2021-46340
Homebrew vulnerability analysis and mitigation

Overview

A vulnerability was discovered in JerryScript version 3.0.0, identified as CVE-2021-46340. The issue involves an assertion failure in the JavaScript scanner component at the scannerscanstatement_end function in /parser/js/js-scanner.c. The vulnerability was discovered and reported by the OWL337 team on January 4, 2022 (GitHub Issue).

Technical details

The vulnerability occurs when processing specific JavaScript code patterns involving async arrow functions. The issue manifests as an assertion failure with the condition 'contextp->stacktopuint8 == SCANSTACKTRYSTATEMENT || contextp->stacktopuint8 == SCANSTACKCATCHSTATEMENT' in the scannerscanstatement_end function. According to the National Vulnerability Database, this vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to a program crash through an assertion failure when processing malformed JavaScript code. This primarily affects the availability of the JerryScript engine when processing specially crafted input (NVD).

Mitigation and workarounds

The vulnerability affects JerryScript version 3.0.0. Users should update to a patched version of JerryScript when available. The issue was reported and tracked through the project's GitHub repository (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-58360CRITICAL9.8
  • JavaJava
  • org.geoserver.web:gs-web-app
NoYesNov 25, 2025
CVE-2025-65085HIGH8.4
  • NixOSNixOS
  • cobalt
NoNoNov 25, 2025
CVE-2025-65084HIGH8.4
  • NixOSNixOS
  • argon
NoNoNov 25, 2025
CVE-2025-59789HIGH7.5
  • HomebrewHomebrew
  • brpc
NoYesDec 01, 2025
CVE-2025-21621MEDIUM6.1
  • JavaJava
  • geoserver
NoYesNov 25, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management