CVE-2024-49364
JavaScript vulnerability analysis and mitigation

Overview

tiny-secp256k1, a tiny secp256k1 native/JS wrapper, was found to contain a critical vulnerability (CVE-2024-49364) prior to version 1.1.7. The vulnerability was discovered where a private key could be extracted when signing a malicious JSON-stringifiable object, specifically in environments where the global Buffer is the buffer package (GitHub Advisory).

Technical details

The vulnerability stems from a bypass of the Buffer.isBuffer check, which results in k reuse for different messages. This leads to private key extraction through a single invalid message, along with a second message/signature pair that could be from any previously known valid signature. The issue specifically affects environments where require('buffer') points to the NPM buffer package, such as browser bundles and React Native apps (GitHub Advisory).

Impact

The vulnerability allows for full private key extraction when signing a single malicious message that can pass JSON.stringify/JSON.parse and potentially come from the network. This is particularly severe as signing a single message should not leak the private key, even in cases where the message is attacker-controlled (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.1.7 of tiny-secp256k1. Users should upgrade to this version or later. Version 2.x is unaffected as it verifies input to be an actual Uint8Array instance (GitHub Advisory, GitHub Pull).

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-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react
NoYesDec 03, 2025
CVE-2025-66401CRITICAL9.8
  • JavaScriptJavaScript
  • mcp-watch
NoNoDec 01, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66405MEDIUM6.9
  • JavaScriptJavaScript
  • @portkey-ai/gateway
NoYesDec 01, 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