Vulnerabilities in pkg:npm/base-x

PACKAGE
Advisory Identifier: GHSA-xq7p-g2vc-g82p
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/base-x

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-27611
GHSA Identifier GHSA-xq7p-g2vc-g82p
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User
Affected Product Base x
Package Ecosystem npm
Published Date
Last Updated

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.

base-x fixed: 5.0.1
npm install base-x@5.0.1
base-x fixed: 4.0.1
npm install base-x@4.0.1
base-x fixed: 3.0.11
npm install base-x@3.0.11
Verify Direct and Transitive Dependencies

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

### Impact Attackers can deceive users into sending funds to an unintended address. ### Patches https://github.com/cryptocoinjs/base-x/pull/86

CVE-2025-27611 Affected Base x Versions

3 component(s)
Fixed Versions:
5.0.14.0.13.0.11
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?
CVE-2025-27611 is a security vulnerability in Base x involving Homograph attack allows Unicode lookalike characters to bypass validation. under CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User.
Which Base x versions are affected?
Affected versions include releases prior to 5.0.1, 4.0.1, 3.0.11 across affected packages: base-x.
What version fixes CVE-2025-27611?
Upgrading to 5.0.1, 4.0.1, 3.0.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is base-x affected?
Yes, base-x is affected in releases prior to 5.0.1, 4.0.1, 3.0.11. Upgrade your dependency to 5.0.1, 4.0.1, 3.0.11 or later.
What CWE is associated with CVE-2025-27611?
CVE-2025-27611 is classified under CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User (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.).
How can I check npm dependencies for CVE-2025-27611?
Run the dependency tree command: 'npm ls base-x'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}