CVE-2025-27611
JavaScript vulnerability analysis and mitigation

Overview

base-x, a base encoder and decoder library that uses bitcoin-style leading zero compression, was found to contain a critical vulnerability (CVE-2025-27611) affecting versions 4.0.0, 5.0.0, and all versions prior to 3.0.11. The vulnerability was disclosed on April 30, 2025, and allows attackers to potentially deceive users into sending funds to unintended addresses through a homograph attack that enables Unicode lookalike characters to bypass validation (Wiz Database, NVD).

Technical details

The vulnerability stems from inconsistent handling of character codes in the library. While character codes greater than 255 are prohibited when constructing an alphabet (throwing a TypeError), they are incorrectly accepted during string decoding operations. This inconsistency allows attackers to use Unicode characters with codes above 255, potentially creating addresses that appear legitimate but direct funds to different destinations. The vulnerability has been assigned a CVSS v4.0 score of 8.7 (HIGH) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N (GitHub PR, Wiz Database).

Impact

The primary impact of this vulnerability is financial in nature. By exploiting the homograph attack vulnerability, malicious actors can create addresses that visually appear identical to legitimate ones but actually direct funds to different destinations, potentially leading to unauthorized fund transfers (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 3.0.11, 4.0.1, and 5.0.1. Users are strongly advised to upgrade to these patched versions to prevent potential exploitation. The fix involves properly validating character codes during both encoding and decoding operations (GitHub Advisory).

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

GHSA-vffh-c9pq-4crhMEDIUM6.5
  • JavaScriptJavaScript
  • uptime-kuma
NoNoOct 20, 2025
CVE-2025-62522MEDIUM6
  • JavaScriptJavaScript
  • vite
NoYesOct 20, 2025
CVE-2025-62595MEDIUM4.3
  • JavaScriptJavaScript
  • koa
NoYesOct 21, 2025
GHSA-xvp7-8vm8-xfxxMEDIUM4.2
  • JavaScriptJavaScript
  • @actual-app/sync-server
NoNoOct 20, 2025
CVE-2025-62505LOW3
  • JavaScriptJavaScript
  • @lobehub/chat
NoYesOct 17, 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