CWE-1007
Weakness AllowedInsufficient Visual Distinction of Homoglyphs Presented to User
Abstraction: Base · Status: Incomplete
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.
Adversaries can exploit this visual similarity for attacks such as phishing, e.g. by providing a link to an attacker-controlled hostname that looks like a hostname that the victim trusts. In a different use of homoglyphs, an adversary may create a back door username that is visually similar to the username of a regular user, which then makes it more difficult for a system administrator to detect the malicious username while reviewing logs.
Mapping guidance
This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Modes of introduction
This weakness may occur when characters from various character sets are allowed to be interchanged within a URL, username, email address, etc. without any notification to the user or underlying system being used.
Detection methods
Manual Dynamic Analysis
If utilizing user accounts, attempt to submit a username that contains homoglyphs. Similarly, check to see if links containing homoglyphs can be sent via email, web browsers, or other mechanisms.
Effectiveness: Moderate
Content history
updated Demonstrative_Examples, Description, References
updated Demonstrative_Examples, Description, Related_Attack_Patterns
updated Applicable_Platforms, Relationships
updated Observed_Examples
updated Demonstrative_Examples
updated Demonstrative_Examples, Description, Related_Attack_Patterns
updated Relationships
updated Mapping_Notes
updated References
updated Applicable_Platforms
updated Background_Details, Common_Consequences, Description
13 vulnerabilities reference this CWE, most recent first.
GHSA-WMPH-FGW4-55RJ
Vulnerability from github – Published: 2022-12-22 21:30 – Updated: 2025-04-16 18:31If a domain name contained a RTL character, it would cause the domain to be rendered to the right of the path. This could lead to user confusion and spoofing attacks.
This bug only affects Firefox for Android. Other operating systems are unaffected.
Note: Due to a clerical error this advisory was not included in the original announcement, and was added in Feburary 2022. This vulnerability affects Firefox < 92.
{
"affected": [],
"aliases": [
"CVE-2021-4221"
],
"database_specific": {
"cwe_ids": [
"CWE-1007"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-12-22T20:15:00Z",
"severity": "MODERATE"
},
"details": "If a domain name contained a RTL character, it would cause the domain to be rendered to the right of the path. This could lead to user confusion and spoofing attacks. \u003cbr\u003e*This bug only affects Firefox for Android. Other operating systems are unaffected.*\u003cbr\u003e*Note*: Due to a clerical error this advisory was not included in the original announcement, and was added in Feburary 2022. This vulnerability affects Firefox \u003c 92.",
"id": "GHSA-wmph-fgw4-55rj",
"modified": "2025-04-16T18:31:34Z",
"published": "2022-12-22T21:30:31Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4221"
},
{
"type": "WEB",
"url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1704422"
},
{
"type": "WEB",
"url": "https://www.mozilla.org/security/advisories/mfsa2021-38"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-WRGH-9J55-488P
Vulnerability from github – Published: 2025-02-15 03:31 – Updated: 2025-02-18 18:33Inappropriate implementation in Browser UI in Google Chrome on Android prior to 133.0.6943.98 allowed a remote attacker to spoof the contents of the Omnibox (URL bar) via a crafted HTML page. (Chromium security severity: High)
{
"affected": [],
"aliases": [
"CVE-2025-0996"
],
"database_specific": {
"cwe_ids": [
"CWE-1007"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-02-15T02:15:09Z",
"severity": "MODERATE"
},
"details": "Inappropriate implementation in Browser UI in Google Chrome on Android prior to 133.0.6943.98 allowed a remote attacker to spoof the contents of the Omnibox (URL bar) via a crafted HTML page. (Chromium security severity: High)",
"id": "GHSA-wrgh-9j55-488p",
"modified": "2025-02-18T18:33:21Z",
"published": "2025-02-15T03:31:24Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-0996"
},
{
"type": "WEB",
"url": "https://chromereleases.googleblog.com/2025/02/stable-channel-update-for-desktop_12.html"
},
{
"type": "WEB",
"url": "https://issues.chromium.org/issues/391788835"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
}
]
}
GHSA-XQ7P-G2VC-G82P
Vulnerability from github – Published: 2025-04-30 16:34 – Updated: 2025-05-01 13:30Impact
Attackers can deceive users into sending funds to an unintended address.
Patches
https://github.com/cryptocoinjs/base-x/pull/86
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "base-x"
},
"ranges": [
{
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.0.0"
]
},
{
"package": {
"ecosystem": "npm",
"name": "base-x"
},
"ranges": [
{
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.0.0"
]
},
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 3.0.10"
},
"package": {
"ecosystem": "npm",
"name": "base-x"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.11"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-27611"
],
"database_specific": {
"cwe_ids": [
"CWE-1007"
],
"github_reviewed": true,
"github_reviewed_at": "2025-04-30T16:34:59Z",
"nvd_published_at": "2025-04-30T20:15:21Z",
"severity": "HIGH"
},
"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",
"id": "GHSA-xq7p-g2vc-g82p",
"modified": "2025-05-01T13:30:57Z",
"published": "2025-04-30T16:34:59Z",
"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"
}
],
"schema_version": "1.4.0",
"severity": [
{
"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",
"type": "CVSS_V4"
}
],
"summary": "Homograph attack allows Unicode lookalike characters to bypass validation."
}
Mitigation
- Use a browser that displays Punycode for IDNs in the URL and status bars, or which color code various scripts in URLs.
- Due to the prominence of homoglyph attacks, several browsers now help safeguard against this attack via the use of Punycode. For example, Mozilla Firefox and Google Chrome will display IDNs as Punycode if top-level domains do not restrict which characters can be used in domain names or if labels mix scripts for different languages.
Mitigation
- Use an email client that has strict filters and prevents messages that mix character sets to end up in a user's inbox.
- Certain email clients such as Google's GMail prevent the use of non-Latin characters in email addresses or in links contained within emails. This helps prevent homoglyph attacks by flagging these emails and redirecting them to a user's spam folder.
CAPEC-632: Homograph Attack via Homoglyphs
An adversary registers a domain name containing a homoglyph, leading the registered domain to appear the same as a trusted domain. A homograph attack leverages the fact that different characters among various character sets look the same to the user. Homograph attacks must generally be combined with other attacks, such as phishing attacks, in order to direct Internet traffic to the adversary-controlled destinations.