Vulnerability · Published Apr 30, 2025 · Assigned by GitHub_M
CVE-2025-27611base-x homograph attack allows Unicode lookalike characters to bypass validation.
High 8.7
In plain English
A high-severity security flaw in base-x from cryptocoinjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
base-x is a base encoder and decoder of any given alphabet using bitcoin style leading zero compression. Versions 4.0.0, 5.0.0, and all prior to 3.0.11, are vulnerable to attackers potentially deceiving users into sending funds to an unintended address. This issue has been patched in versions 3.0.11, 4.0.1, and 5.0.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | base-x | 5.0.1 | GHSA-xq7p-g2vc-g82p |
| npm | base-x | 4.0.1 | GHSA-xq7p-g2vc-g82p |
| npm | base-x | 3.0.11 | GHSA-xq7p-g2vc-g82p |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| cryptocoinjs | base-x | = 5.0.0= 4.0.0< 3.0.11 |
Weakness: CWE-1007 · Vector: 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
References
- https://github.com/cryptocoinjs/base-x/security/advisories/GHSA-xq7p-g2vc-g82p x_refsource_CONFIRM
- https://github.com/cryptocoinjs/base-x/pull/86 x_refsource_MISC