CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User
3 CVEs have CWE-1007 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 0.449%.
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.
Child of CWE-451: User Interface (UI) Misrepresentation of Critical Information
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.
Observed examples
- 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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-1007'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-1007'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).