CVE-2023-30542
JavaScript vulnerability analysis and mitigation

Overview

OpenZeppelin Contracts, a library for secure smart contract development, was found to contain a vulnerability in the GovernorCompatibilityBravo contract's proposal creation entrypoint ('propose'). The vulnerability, identified as CVE-2023-30542, affects versions from 4.3.0 to 4.8.3 and was disclosed in April 2023. The issue allows the creation of proposals with a 'signatures' array shorter than the 'calldatas' array (Vendor Advisory).

Technical details

The vulnerability stems from a mismatch handling between signatures and calldatas arrays in the propose function. When a proposal is created with a signatures array shorter than the calldatas array, the additional elements of the calldatas array are ignored during execution. While the ProposalCreated event correctly shows what will execute, the getActions query function displays the original intended calldata, creating a discrepancy between the displayed and actual execution behavior. The vulnerability has been assigned a CVSS v3.1 score of 8.8 HIGH (NVD).

Impact

If exploited, this vulnerability could lead to proposals executing with missing or incorrect calldata, potentially causing unexpected behavior in the governance system. The discrepancy between what is displayed through getActions and what actually executes could lead to confusion and potential manipulation of governance proposals (Vendor Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 4.8.3 of OpenZeppelin Contracts. For users unable to upgrade immediately, a workaround is available: ensure that all proposals passing through governance have equal length signatures and calldatas parameters. Users are strongly advised to upgrade to the patched version (Release Notes).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

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