Vulnerabilities in pkg:npm/base-x
PACKAGECVE-2025-27611 is a HIGH homograph attack allows unicode lookalike vulnerability (CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User) affecting Base x libraries in the npm ecosystem. The issue involves homograph attack allows unicode lookalike characters to bypass validation.. Remediation is available by upgrading affected packages to version 5.0.1, 4.0.1, 3.0.11.
pkg:npm/base-x
Vulnerability advisories affecting package pkg:npm/base-x. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xq7p-g2vc-g82p | CVE-2025-27611 | HIGH | Homograph attack allows Unicode lookalike characters to bypass validation. |
CVE-2025-27611 at a Glance
How to Fix CVE-2025-27611
To remediate this vulnerability, upgrade all affected Base x dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install base-x@5.0.1
npm install base-x@4.0.1
npm install base-x@3.0.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls base-x
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-27611, inspect your project dependencies using npm:
npm ls base-x
Analyze the terminal output to locate any version of Base x in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.1), your application is affected.
Note: The npm ls base-x command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User, where the product displays information or identifiers to a user, but the display mechanism does not make it easy for the user to distinguish between visually similar or identical glyphs (homoglyphs), which may cause the user to misinterpret a glyph and perform an unintended, insecure action. In Base x, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-27611 Affected Base x Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
base-x
|
npm |
≥ 5.0.0
< 5.0.1
All 1 versions
5.0.0
|
5.0.1
|
|
base-x
|
npm |
≥ 4.0.0
< 4.0.1
All 1 versions
4.0.0
|
4.0.1
|
|
base-x
|
npm |
< 3.0.11
|
3.0.11
|
References
Frequently Asked Questions
What is CVE-2025-27611?
Which Base x versions are affected?
What version fixes CVE-2025-27611?
Is base-x affected?
What CWE is associated with CVE-2025-27611?
How can I check npm dependencies for CVE-2025-27611?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xq7p-g2vc-g82p",
"modified" : "2025-05-01T13:30:57Z",
"published" : "2025-04-30T16:34:59Z",
"aliases" : [ "CVE-2025-27611" ],
"summary" : "Homograph attack allows Unicode lookalike characters to bypass validation.",
"details" : "### Impact\n\nAttackers can deceive users into sending funds to an unintended address.\n\n### Patches\n\nhttps://github.com/cryptocoinjs/base-x/pull/86",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "base-x"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.0.1"
} ]
} ],
"versions" : [ "5.0.0" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "base-x"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.1"
} ]
} ],
"versions" : [ "4.0.0" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "base-x"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.11"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.0.10"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cryptocoinjs/base-x/security/advisories/GHSA-xq7p-g2vc-g82p"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27611"
}, {
"type" : "WEB",
"url" : "https://github.com/cryptocoinjs/base-x/pull/86"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cryptocoinjs/base-x"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1007" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-30T16:34:59Z",
"nvd_published_at" : "2025-04-30T20:15:21Z"
}
}