---
title: "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User"
url: https://radicalnotion.ai/cwe/cwe-1007
type: cwe
description: "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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **Likelihood of exploit:** Medium
- **CVEs with this as primary weakness:** 20
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

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.

## Background

Some glyphs, pictures, or icons can be semantically distinct to a program, while appearing very similar or identical to a human user. These are referred to as homoglyphs. For example, the lowercase "l" (ell) and uppercase "I" (eye) have different character codes, but these characters can be displayed in exactly the same way to a user, depending on the font. This can also occur between different character sets. For example, the Latin capital letter "A" and the Greek capital letter "Α" (Alpha) are treated as distinct by programs, but they may be displayed in exactly the same way to a user. Accent marks may also cause letters to appear very similar, such as the Latin capital letter grave mark "À" and its equivalent "Á" with the acute accent.

## Alternate terms

- **Homograph Attack:** "Homograph" is often used as a synonym of "homoglyph" by researchers, but according to Wikipedia, a homograph is a word that has multiple, distinct meanings.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | 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. |
| Implementation | - |

## Applicable platforms

**Technologies:** Web Based (Sometimes)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity, Confidentiality | Other, Varies by Context, Hide Activities | An attacker may ultimately redirect a user to a malicious website, by deceiving the user into believing the URL they are accessing is a trusted domain. However, the attack can also be used to forge log entries by using homoglyphs in usernames. Homoglyph manipulations are often the first step towards executing advanced attacks such as stealing a user's credentials, Cross-Site Scripting (XSS), or log forgery. If an attacker redirects a user to a malicious site, the attacker can mimic a trusted domain to steal account credentials and perform actions on behalf of the user, without the user's knowledge. Similarly, an attacker could create a username for a website that contains homoglyph characters, making it difficult for an admin to review logs and determine which users performed which actions. |

## Potential mitigations

### Implementation

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.

### Implementation

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.

## 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

## Demonstrative examples

### Example 1

The following looks like a simple, trusted URL that a user may frequently access.

Attack code:

```
http://www.еxаmрlе.соm
```

However, the URL above is comprised of Cyrillic characters that look identical to the expected ASCII characters. This results in most users not being able to distinguish between the two and assuming that the above URL is trusted and safe. The "e" is actually the "CYRILLIC SMALL LETTER IE" which is represented in HTML as the character &#x435, while the "a" is actually the "CYRILLIC SMALL LETTER A" which is represented in HTML as the character &#x430. The "p", "c", and "o" are also Cyrillic characters in this example. Viewing the source reveals a URL of "http://www.&#x435;x&#x430;m&#x440;l&#x435;.&#x441;&#x43e;m". An adversary can utilize this approach to perform an attack such as a phishing attack in order to drive traffic to a malicious website.

### Example 2

The following displays an example of how creating usernames containing homoglyphs can lead to log forgery.

Result code:

```
123.123.123.123 аdmіn [17/Jul/2017:09:05:49 -0400] "GET /example/users/userlist HTTP/1.1" 401 12846
123.123.123.123 аdmіn [17/Jul/2017:09:06:51 -0400] "GET /example/users/userlist HTTP/1.1" 200 4523
123.123.123.123 admin [17/Jul/2017:09:10:02 -0400] "GET /example/users/editusers HTTP/1.1" 200 6291
123.123.123.123 аdmіn [17/Jul/2017:09:10:02 -0400] "GET /example/users/editusers HTTP/1.1" 200 6291
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2013-7236 | web forum allows impersonation of users with homoglyphs in account names |
| CVE-2012-0584 | Improper character restriction in URLs in web browser |
| CVE-2009-0652 | Incomplete denylist does not include homoglyphs of "/" and "?" characters in URLs |
| CVE-2017-5015 | web browser does not convert hyphens to punycode, allowing IDN spoofing in URLs |
| CVE-2005-0233 | homoglyph spoofing using punycode in URLs and certificates |
| CVE-2005-0234 | homoglyph spoofing using punycode in URLs and certificates |
| CVE-2005-0235 | homoglyph spoofing using punycode in URLs and certificates |

## Real CVEs with this weakness (sample of 12 of 20)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2020-6410 | Insufficient policy enforcement in navigation | high | 8.8 | - | No | 2020-02-11 |
| CVE-2025-27611 | base-x homograph attack allows Unicode lookalike characters to bypass validation. | high | 8.7 | - | No | 2025-04-30 |
| CVE-2020-6460 | Insufficient data validation in URL formatting | medium | 6.5 | - | No | 2020-05-21 |
| CVE-2019-13742 | Incorrect security UI in Omnibox | medium | 6.5 | - | No | 2019-12-10 |
| CVE-2019-13739 | Incorrect security UI in Omnibox | medium | 6.5 | - | No | 2019-12-10 |
| CVE-2019-5776 | Insufficient policy enforcement in Omnibox | medium | 6.5 | - | No | 2019-02-19 |
| CVE-2019-5781 | Insufficient policy enforcement in Omnibox | medium | 6.5 | - | No | 2019-02-19 |
| CVE-2018-6105 | URL spoof in Omnibox | medium | 6.5 | - | No | 2018-12-04 |
| CVE-2025-0996 | Inappropriate implementation in Browser UI | medium | 5.4 | - | No | 2025-02-15 |
| CVE-2021-4221 | - | medium | 4.3 | - | No | 2022-12-22 |
| CVE-2019-13761 | Incorrect security UI in Omnibox | medium | 4.3 | - | No | 2019-12-10 |
| CVE-2019-13757 | Incorrect security UI in Omnibox | medium | 4.3 | - | No | 2019-12-10 |

## Related attack patterns (CAPEC)

- [CAPEC-632](https://radicalnotion.ai/capec/capec-632): Homograph Attack via Homoglyphs

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-451](https://radicalnotion.ai/cwe/cwe-451) | User Interface (UI) Misrepresentation of Critical Information |

## Frequently asked questions

### What is CWE-1007?

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.

### What CVEs are caused by CWE-1007?

20 recorded CVEs are attributed to CWE-1007, including CVE-2020-6410, CVE-2025-27611 and CVE-2020-6460.

### How do you prevent CWE-1007?

Use a browser that displays Punycode for IDNs in the URL and status bars, or which color code various scripts in URLs.

### How is CWE-1007 detected?

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.

### What are the consequences of CWE-1007?

Exploiting CWE-1007 can lead to: Other, Varies by Context, Hide Activities.

### Is CWE-1007 actively exploited?

20 recorded CVEs are caused by CWE-1007; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1007.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1007). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
