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
17 vulnerabilities reference this CWE, most recent first.
CVE-2026-141531 (GCVE-0-2026-141531)
Vulnerability from cvelistv5 – Published: 2026-12-01 21:15 – Updated: 2026-12-01 22:23| URL | Tags |
|---|---|
| https://github.com/sporkmonger/addressable/securi… | x_refsource_CONFIRM |
| https://github.com/sporkmonger/addressable/commit… | x_refsource_MISC |
| https://github.com/sporkmonger/addressable/releas… | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| sporkmonger | addressable |
Affected:
>= 2.0.0, < 2.10.0
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-141531",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-12-01T22:23:36.630450Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T22:23:56.131Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-x378-rg7m-2c49"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "addressable",
"vendor": "sporkmonger",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.0.0, \u003c 2.10.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Addressable is an alternative implementation to the URI implementation that is part of Ruby\u0027s standard library. From 2.0.0 until 2.10.0, Addressable::IDNA.to_unicode decodes an A-label whose Unicode form contains U+3002, and Addressable::URI#display_uri then shows a label boundary that is absent from the real host. With the native IDNA backend, re-parsing the displayed value can produce a different host. Labels to the right remain unchanged, so the display cannot impersonate a host outside the attacker\u0027s registrable domain unless a registry accepts a separator-containing registrable label. This issue is fixed in version 2.10.0."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 3.1,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-451",
"description": "CWE-451: User Interface (UI) Misrepresentation of Critical Information",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1007",
"description": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T21:15:45.015Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-x378-rg7m-2c49",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-x378-rg7m-2c49"
},
{
"name": "https://github.com/sporkmonger/addressable/commit/7212588b28b9fea6811dd456abc1da214cca6b6b",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/commit/7212588b28b9fea6811dd456abc1da214cca6b6b"
},
{
"name": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"
}
],
"source": {
"advisory": "GHSA-x378-rg7m-2c49",
"discovery": "UNKNOWN"
},
"title": "Addressable display_uri shows a deceptive label boundary for a host label that decodes to U+3002"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-141531",
"datePublished": "2026-12-01T21:15:45.015Z",
"dateReserved": "2026-12-01T20:36:11.695Z",
"dateUpdated": "2026-12-01T22:23:56.131Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-141530 (GCVE-0-2026-141530)
Vulnerability from cvelistv5 – Published: 2026-12-01 21:13 – Updated: 2026-12-02 13:36| URL | Tags |
|---|---|
| https://github.com/sporkmonger/addressable/securi… | x_refsource_CONFIRM |
| https://github.com/sporkmonger/addressable/commit… | x_refsource_MISC |
| https://github.com/sporkmonger/addressable/releas… | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| sporkmonger | addressable |
Affected:
>= 2.0.0, < 2.10.0
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-141530",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-12-02T13:35:36.553365Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-12-02T13:36:43.048Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-fccw-gx6q-mh6c"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "addressable",
"vendor": "sporkmonger",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.0.0, \u003c 2.10.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Addressable is an alternative implementation to the URI implementation that is part of Ruby\u0027s standard library. From 2.0.0 until 2.10.0, the pure-Ruby Addressable::IDNA.to_unicode implementation omits the IDNA2003 nameprep bidirectional-label rule. Addressable::URI#display_uri can render an attacker-controlled host identically to a target host only when the target has a right-to-left label with digits beside a dot and the attacker\u0027s complementary domain completes that displayed name. A user who trusts the displayed host can therefore be misled about the actual domain. This issue is fixed in version 2.10.0."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 3.1,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-451",
"description": "CWE-451: User Interface (UI) Misrepresentation of Critical Information",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1007",
"description": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T21:13:10.263Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-fccw-gx6q-mh6c",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-fccw-gx6q-mh6c"
},
{
"name": "https://github.com/sporkmonger/addressable/commit/f44193750649a2e05f3971b46b19e9a3f19d35d7",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/commit/f44193750649a2e05f3971b46b19e9a3f19d35d7"
},
{
"name": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"
}
],
"source": {
"advisory": "GHSA-fccw-gx6q-mh6c",
"discovery": "UNKNOWN"
},
"title": "Addressable pure IDNA implementation skips the nameprep bidi rule, so hosts under different domains can display identically"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-141530",
"datePublished": "2026-12-01T21:13:10.263Z",
"dateReserved": "2026-12-01T20:36:11.695Z",
"dateUpdated": "2026-12-02T13:36:43.048Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-126349 (GCVE-0-2026-126349)
Vulnerability from cvelistv5 – Published: 2026-11-12 22:00 – Updated: 2026-11-16 19:34| URL | Tags |
|---|---|
| https://github.com/sporkmonger/addressable/securi… | x_refsource_CONFIRM |
| https://github.com/sporkmonger/addressable/commit… | x_refsource_MISC |
| https://github.com/sporkmonger/addressable/releas… | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| sporkmonger | addressable |
Affected:
>= 2.0.0, < 2.9.1
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126349",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-16T19:34:20.634207Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T19:34:33.301Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "addressable",
"vendor": "sporkmonger",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.0.0, \u003c 2.9.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Addressable is an alternative implementation to the URI implementation that is part of Ruby\u0027s standard library. From 2.0.0 until 2.9.1, Addressable::IDNA.to_unicode can decode Punycode labels that contain bidirectional controls, zero-width characters, control characters, or other default-ignorable format characters. Addressable::URI#display_uri can consequently show a reordered or visually indistinguishable hostname even though host, normalized_host, and network connections use the original encoded hostname. The pure-Ruby backend accepts the full prohibited set, while the native libidn backend is affected from 2.5.2 for characters added after Unicode 3.2. This issue is fixed in version 2.9.1."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 3.1,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-176",
"description": "CWE-176: Improper Handling of Unicode Encoding",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-451",
"description": "CWE-451: User Interface (UI) Misrepresentation of Critical Information",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1007",
"description": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-12T22:00:22.516Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-539f-xcgw-2gjg",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-539f-xcgw-2gjg"
},
{
"name": "https://github.com/sporkmonger/addressable/commit/60455d32bb59fda2585a0e1865a9fcb21e8e55b1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/commit/60455d32bb59fda2585a0e1865a9fcb21e8e55b1"
},
{
"name": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1"
}
],
"source": {
"advisory": "GHSA-539f-xcgw-2gjg",
"discovery": "UNKNOWN"
},
"title": "Addressable display_uri can show misleading hosts containing bidi and invisible characters"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-126349",
"datePublished": "2026-11-12T22:00:22.516Z",
"dateReserved": "2026-11-10T21:12:01.227Z",
"dateUpdated": "2026-11-16T19:34:33.301Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-126348 (GCVE-0-2026-126348)
Vulnerability from cvelistv5 – Published: 2026-11-12 21:57 – Updated: 2026-11-13 00:34| URL | Tags |
|---|---|
| https://github.com/sporkmonger/addressable/securi… | x_refsource_CONFIRM |
| https://github.com/sporkmonger/addressable/commit… | x_refsource_MISC |
| https://github.com/sporkmonger/addressable/releas… | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| sporkmonger | addressable |
Affected:
>= 2.0.0, < 2.9.1
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126348",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-13T00:34:06.519332Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-13T00:34:23.442Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "addressable",
"vendor": "sporkmonger",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.0.0, \u003c 2.9.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Addressable is an alternative implementation to the URI implementation that is part of Ruby\u0027s standard library. From 2.0.0 until 2.9.1, the pure-Ruby Addressable::IDNA.to_unicode implementation decodes invalid Punycode A-labels instead of returning them unchanged. Labels that decode to ASCII text or fail to convert back to the same A-label can therefore make Addressable::URI#display_uri show a trusted-looking host while host, normalized_host, and the connection target retain the attacker-controlled encoded host. A trusted-name comparison using Addressable::IDNA.to_unicode output can also treat two different hosts as the same without displaying the URI. The native libidn implementation, to_ascii, and normalized_host are unaffected. This issue is fixed in version 2.9.1."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 4.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20: Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1007",
"description": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-12T21:57:55.237Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-9crm-g4mf-wc5j",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-9crm-g4mf-wc5j"
},
{
"name": "https://github.com/sporkmonger/addressable/commit/b8a59cc0e03f8704f1d7c8122fc8f7ef8548362d",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/commit/b8a59cc0e03f8704f1d7c8122fc8f7ef8548362d"
},
{
"name": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1"
}
],
"source": {
"advisory": "GHSA-9crm-g4mf-wc5j",
"discovery": "UNKNOWN"
},
"title": "Addressable display_uri can show misleading hosts with invalid Punycode A-labels"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-126348",
"datePublished": "2026-11-12T21:57:55.237Z",
"dateReserved": "2026-11-10T21:12:01.227Z",
"dateUpdated": "2026-11-13T00:34:23.442Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-48760 (GCVE-0-2026-48760)
Vulnerability from cvelistv5 – Published: 2026-07-14 19:11 – Updated: 2026-07-15 14:36| URL | Tags |
|---|---|
| https://github.com/symfony/symfony/security/advis… | x_refsource_CONFIRM |
| https://github.com/symfony/symfony/commit/b21a626… | x_refsource_MISC |
| https://github.com/symfony/symfony/releases/tag/v6.4.41 | x_refsource_MISC |
| https://github.com/symfony/symfony/releases/tag/v7.4.13 | x_refsource_MISC |
| https://github.com/symfony/symfony/releases/tag/v8.0.13 | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| symfony | symfony |
Affected:
>= 6.1.0, < 6.4.41
Affected: >= 7.0.0-BETA1, < 7.4.13 Affected: >= 8.0.0-BETA1, < 8.0.13 |
|
| symfony | html-sanitizer |
Affected:
>= 6.1.0, < 6.4.41
Affected: >= 7.0.0-BETA1, < 7.4.13 Affected: >= 8.0.0-BETA1, < 8.0.13 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-48760",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-15T14:35:52.904845Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-15T14:36:03.339Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "symfony",
"vendor": "symfony",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.1.0, \u003c 6.4.41"
},
{
"status": "affected",
"version": "\u003e= 7.0.0-BETA1, \u003c 7.4.13"
},
{
"status": "affected",
"version": "\u003e= 8.0.0-BETA1, \u003c 8.0.13"
}
]
},
{
"product": "html-sanitizer",
"vendor": "symfony",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.1.0, \u003c 6.4.41"
},
{
"status": "affected",
"version": "\u003e= 7.0.0-BETA1, \u003c 7.4.13"
},
{
"status": "affected",
"version": "\u003e= 8.0.0-BETA1, \u003c 8.0.13"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0 until 6.4.41, 7.4.13, and 8.0.13, UrlSanitizer::parse() rejected raw BiDi formatting characters but not percent-encoded forms and used an ASCII-only whitespace check, allowing sanitized URLs to retain visual-spoofing characters that downstream consumers could decode or display. This issue is fixed in versions 6.4.41, 7.4.13, and 8.0.13."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-451",
"description": "CWE-451: User Interface (UI) Misrepresentation of Critical Information",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1007",
"description": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-07-14T19:11:42.179Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/symfony/symfony/security/advisories/GHSA-v3wm-qf9p-c549",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/symfony/symfony/security/advisories/GHSA-v3wm-qf9p-c549"
},
{
"name": "https://github.com/symfony/symfony/commit/b21a626fd90f5c12d2db432c629eed3e780ba2f8",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/commit/b21a626fd90f5c12d2db432c629eed3e780ba2f8"
},
{
"name": "https://github.com/symfony/symfony/releases/tag/v6.4.41",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/releases/tag/v6.4.41"
},
{
"name": "https://github.com/symfony/symfony/releases/tag/v7.4.13",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/releases/tag/v7.4.13"
},
{
"name": "https://github.com/symfony/symfony/releases/tag/v8.0.13",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/releases/tag/v8.0.13"
}
],
"source": {
"advisory": "GHSA-v3wm-qf9p-c549",
"discovery": "UNKNOWN"
},
"title": "Symfony: HtmlSanitizer URL Parser Deny Gates Underinclusive: Percent-Encoded BiDi Marks and Unicode Whitespace Bypass Visual-Spoofing Defense"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-48760",
"datePublished": "2026-07-14T19:11:42.179Z",
"dateReserved": "2026-05-22T19:39:05.356Z",
"dateUpdated": "2026-07-15T14:36:03.339Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-45064 (GCVE-0-2026-45064)
Vulnerability from cvelistv5 – Published: 2026-07-14 18:35 – Updated: 2026-07-21 19:09| URL | Tags |
|---|---|
| https://github.com/symfony/symfony/security/advis… | x_refsource_CONFIRM |
| https://github.com/symfony/symfony/commit/743a435… | x_refsource_MISC |
| https://github.com/symfony/symfony/releases/tag/v6.4.40 | x_refsource_MISC |
| https://github.com/symfony/symfony/releases/tag/v7.4.12 | x_refsource_MISC |
| https://github.com/symfony/symfony/releases/tag/v8.0.12 | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| symfony | symfony |
Affected:
>= 6.1.0-BETA1, < 6.4.40
Affected: >= 7.0.0-BETA1, < 7.4.12 Affected: >= 8.0.0-BETA1, < 8.0.12 |
|
| symfony | html-sanitizer |
Affected:
>= 6.1.0-BETA1, < 6.4.40
Affected: >= 7.0.0-BETA1, < 7.4.12 Affected: >= 8.0.0-BETA1, < 8.0.12 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-45064",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-21T19:09:18.820885Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-21T19:09:27.830Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "symfony",
"vendor": "symfony",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.1.0-BETA1, \u003c 6.4.40"
},
{
"status": "affected",
"version": "\u003e= 7.0.0-BETA1, \u003c 7.4.12"
},
{
"status": "affected",
"version": "\u003e= 8.0.0-BETA1, \u003c 8.0.12"
}
]
},
{
"product": "html-sanitizer",
"vendor": "symfony",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.1.0-BETA1, \u003c 6.4.40"
},
{
"status": "affected",
"version": "\u003e= 7.0.0-BETA1, \u003c 7.4.12"
},
{
"status": "affected",
"version": "\u003e= 8.0.0-BETA1, \u003c 8.0.12"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlSanitizer::parse() passes Unicode explicit-direction BiDi formatting characters through into sanitized href and src attributes, allowing sanitized content to display a link destination that visually differs from the actual destination and enabling phishing-style visual spoofing. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 2.3,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-451",
"description": "CWE-451: User Interface (UI) Misrepresentation of Critical Information",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1007",
"description": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-07-14T18:35:53.530Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/symfony/symfony/security/advisories/GHSA-h5vq-qfcg-4m6p",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/symfony/symfony/security/advisories/GHSA-h5vq-qfcg-4m6p"
},
{
"name": "https://github.com/symfony/symfony/commit/743a435e948b897ef2b5564ac438d4beb95d2526",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/commit/743a435e948b897ef2b5564ac438d4beb95d2526"
},
{
"name": "https://github.com/symfony/symfony/releases/tag/v6.4.40",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/releases/tag/v6.4.40"
},
{
"name": "https://github.com/symfony/symfony/releases/tag/v7.4.12",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/releases/tag/v7.4.12"
},
{
"name": "https://github.com/symfony/symfony/releases/tag/v8.0.12",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/symfony/symfony/releases/tag/v8.0.12"
}
],
"source": {
"advisory": "GHSA-h5vq-qfcg-4m6p",
"discovery": "UNKNOWN"
},
"title": "Symfony: HtmlSanitizer URL Attributes Pass Through BiDi Override Characters \u2192 Visual href Spoofing"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-45064",
"datePublished": "2026-07-14T18:35:53.530Z",
"dateReserved": "2026-05-08T18:45:10.095Z",
"dateUpdated": "2026-07-21T19:09:27.830Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2025-27611 (GCVE-0-2025-27611)
Vulnerability from cvelistv5 – Published: 2025-04-30 19:36 – Updated: 2025-05-01 18:49- CWE-1007 - Insufficient Visual Distinction of Homoglyphs Presented to User
| URL | Tags |
|---|---|
| https://github.com/cryptocoinjs/base-x/security/a… | x_refsource_CONFIRM |
| https://github.com/cryptocoinjs/base-x/pull/86 | x_refsource_MISC |
| Vendor | Product | Version | |
|---|---|---|---|
| cryptocoinjs | base-x |
Affected:
= 5.0.0
Affected: = 4.0.0 Affected: < 3.0.11 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2025-27611",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-05-01T18:49:09.602435Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2025-05-01T18:49:22.814Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "base-x",
"vendor": "cryptocoinjs",
"versions": [
{
"status": "affected",
"version": "= 5.0.0"
},
{
"status": "affected",
"version": "= 4.0.0"
},
{
"status": "affected",
"version": "\u003c 3.0.11"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "base-x is a base encoder and decoder of any given alphabet using bitcoin style leading zero compression. Versions 4.0.0, 5.0.0, and all prior to 3.0.11, are vulnerable to attackers potentially deceiving users into sending funds to an unintended address. This issue has been patched in versions 3.0.11, 4.0.1, and 5.0.1."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.7,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1007",
"description": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-04-30T19:36:57.356Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/cryptocoinjs/base-x/security/advisories/GHSA-xq7p-g2vc-g82p",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/cryptocoinjs/base-x/security/advisories/GHSA-xq7p-g2vc-g82p"
},
{
"name": "https://github.com/cryptocoinjs/base-x/pull/86",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/cryptocoinjs/base-x/pull/86"
}
],
"source": {
"advisory": "GHSA-xq7p-g2vc-g82p",
"discovery": "UNKNOWN"
},
"title": "base-x homograph attack allows Unicode lookalike characters to bypass validation."
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2025-27611",
"datePublished": "2025-04-30T19:36:57.356Z",
"dateReserved": "2025-03-03T15:10:34.079Z",
"dateUpdated": "2025-05-01T18:49:22.814Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
GHSA-539F-XCGW-2GJG
Vulnerability from github – Published: 2026-11-12 22:44 – Updated: 2026-11-12 22:44Impact
Addressable::IDNA.to_unicode decodes Punycode labels (labels beginning with xn--) that contain characters which change how text is displayed without being visible themselves. These include bidirectional controls such as U+202E RIGHT-TO-LEFT OVERRIDE and U+2066–U+2069, zero-width characters, and other invisible format characters. Addressable::URI#display_uri uses to_unicode, so it can display a host whose characters appear reordered or which looks identical to a different host. For example, the host of http://xn--abcmoc-dm0c.com/ is displayed as abc, U+202E, moc.com, and the override makes everything after abc render right to left.
Parsing, host, normalized_host and any connection made from the URI are not affected. Only the displayed form is. Applications that show display_uri to users (link previews, chat and email clients, admin interfaces) can be used to make a malicious domain look like a trusted one.
- In the pure-Ruby IDNA implementation, all such characters are decoded, including those that IDNA's nameprep profile prohibits.
- In the native IDNA implementation, used when libidn and the
idn-rubygem are installed, libidn rejects most of them, but not characters added to Unicode after version 3.2, such as U+061C and U+2066–U+2069.
Affected Versions
The pure-Ruby IDNA implementation is affected in Addressable >= 2.0.0. The native IDNA implementation is affected in Addressable >= 2.5.2, when to_unicode began accepting characters unassigned in Unicode 3.2. It is fixed in 2.9.1 for both implementations, where such labels are returned unchanged.
Workarounds
- Install libidn and the
idn-rubygem, so that Addressable uses the native IDNA implementation. This reduces the affected characters to those added since Unicode 3.2. - Check displayed hosts for bidirectional and invisible characters (e.g.,
/[\p{Cc}\p{Cf}\p{Default_Ignorable_Code_Point}]/) and fall back tonormalized_hostwhen one is present.
Credits
Reported by @andrewstellman.
For more information
If there are any questions or comments about this advisory: * Open an issue
{
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "addressable"
},
"ranges": [
{
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.9.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-126349"
],
"database_specific": {
"cwe_ids": [
"CWE-1007",
"CWE-176",
"CWE-451"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-12T22:44:15Z",
"nvd_published_at": null,
"severity": "LOW"
},
"details": "### Impact\n\n`Addressable::IDNA.to_unicode` decodes Punycode labels (labels beginning with `xn--`) that contain characters which change how text is displayed without being visible themselves. These include bidirectional controls such as U+202E RIGHT-TO-LEFT OVERRIDE and U+2066\u2013U+2069, zero-width characters, and other invisible format characters. `Addressable::URI#display_uri` uses `to_unicode`, so it can display a host whose characters appear reordered or which looks identical to a different host. For example, the host of `http://xn--abcmoc-dm0c.com/` is displayed as `abc`, U+202E, `moc.com`, and the override makes everything after `abc` render right to left.\n\nParsing, `host`, `normalized_host` and any connection made from the URI are not affected. Only the displayed form is. Applications that show `display_uri` to users (link previews, chat and email clients, admin interfaces) can be used to make a malicious domain look like a trusted one.\n\n- In the pure-Ruby IDNA implementation, all such characters are decoded, including those that IDNA\u0027s nameprep profile prohibits.\n- In the native IDNA implementation, used when libidn and the `idn-ruby` gem are installed, libidn rejects most of them, but not characters added to Unicode after version 3.2, such as U+061C and U+2066\u2013U+2069.\n\n### Affected Versions\n\nThe pure-Ruby IDNA implementation is affected in Addressable \u003e= 2.0.0. The native IDNA implementation is affected in Addressable \u003e= 2.5.2, when `to_unicode` began accepting characters unassigned in Unicode 3.2. It is fixed in 2.9.1 for both implementations, where such labels are returned unchanged.\n\n### Workarounds\n\n- Install libidn and the `idn-ruby` gem, so that Addressable uses the native IDNA implementation. This reduces the affected characters to those added since Unicode 3.2.\n- Check displayed hosts for bidirectional and invisible characters (e.g., `/[\\p{Cc}\\p{Cf}\\p{Default_Ignorable_Code_Point}]/`) and fall back to `normalized_host` when one is present.\n\n### Credits\n\nReported by @andrewstellman.\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* [Open an issue](https://github.com/sporkmonger/addressable/issues)",
"id": "GHSA-539f-xcgw-2gjg",
"modified": "2026-11-12T22:44:16Z",
"published": "2026-11-12T22:44:15Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-539f-xcgw-2gjg"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/commit/60455d32bb59fda2585a0e1865a9fcb21e8e55b1"
},
{
"type": "WEB",
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-539f-xcgw-2gjg.yml"
},
{
"type": "PACKAGE",
"url": "https://github.com/sporkmonger/addressable"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Addressable display_uri can show misleading hosts containing bidi and invisible characters"
}
GHSA-9CRM-G4MF-WC5J
Vulnerability from github – Published: 2026-11-12 22:44 – Updated: 2026-11-12 22:44Impact
Addressable::IDNA.to_unicode, in the pure-Ruby IDNA implementation, decodes Punycode labels (labels beginning with xn--) that are not valid A-labels. Those labels are returned in decoded form, when they should be returned unchanged. That includes:
- labels that decode to only ASCII characters, e.g.
xn--google-decodes togoogle; - labels that decode to text that doesn't convert back to the same label (RFC 3490 §4.2), e.g. text that isn't in normalized form.
Addressable::URI#display_uri uses to_unicode, so for https://xn--google-.example.org/ it displays the host google.example.org, while #host, #normalized_host and any connection made from the URI use xn--google-.example.org. An attacker who controls a domain can therefore have a URI displayed as a host they don't control. Applications that compare the result of to_unicode against a list of trusted names can likewise treat two different hosts as the same.
The native IDNA implementation, used when libidn and the idn-ruby gem are installed, is not affected. to_ascii and normalized_host are not affected.
Affected Versions
This vulnerability affects Addressable >= 2.0.0, the first version with the pure-Ruby IDNA implementation, when that implementation is in use. It is fixed in 2.9.1, where such labels are returned unchanged, as with libidn.
Workarounds
- Install libidn and the
idn-rubygem, so that Addressable uses the native IDNA implementation. - Don't make security decisions on
display_uriorto_unicodeoutput. Compare hosts usingnormalized_host.
Credits
Reported by @tonghuaroot.
For more information
If there are any questions or comments about this advisory: * Open an issue
{
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "addressable"
},
"ranges": [
{
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.9.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-126348"
],
"database_specific": {
"cwe_ids": [
"CWE-1007",
"CWE-20"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-12T22:44:57Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "### Impact\n\n`Addressable::IDNA.to_unicode`, in the pure-Ruby IDNA implementation, decodes Punycode labels (labels beginning with `xn--`) that are not valid A-labels. Those labels are returned in decoded form, when they should be returned unchanged. That includes:\n\n- labels that decode to only ASCII characters, e.g. `xn--google-` decodes to `google`;\n- labels that decode to text that doesn\u0027t convert back to the same label (RFC 3490 \u00a74.2), e.g. text that isn\u0027t in normalized form.\n\n`Addressable::URI#display_uri` uses `to_unicode`, so for `https://xn--google-.example.org/` it displays the host `google.example.org`, while `#host`, `#normalized_host` and any connection made from the URI use `xn--google-.example.org`. An attacker who controls a domain can therefore have a URI displayed as a host they don\u0027t control. Applications that compare the result of `to_unicode` against a list of trusted names can likewise treat two different hosts as the same.\n\nThe native IDNA implementation, used when libidn and the `idn-ruby` gem are installed, is not affected. `to_ascii` and `normalized_host` are not affected.\n\n### Affected Versions\n\nThis vulnerability affects Addressable \u003e= 2.0.0, the first version with the pure-Ruby IDNA implementation, when that implementation is in use. It is fixed in 2.9.1, where such labels are returned unchanged, as with libidn.\n\n### Workarounds\n\n- Install libidn and the `idn-ruby` gem, so that Addressable uses the native IDNA implementation.\n- Don\u0027t make security decisions on `display_uri` or `to_unicode` output. Compare hosts using `normalized_host`.\n\n### Credits\n\nReported by @tonghuaroot.\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* [Open an issue](https://github.com/sporkmonger/addressable/issues)",
"id": "GHSA-9crm-g4mf-wc5j",
"modified": "2026-11-12T22:44:57Z",
"published": "2026-11-12T22:44:57Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-9crm-g4mf-wc5j"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/commit/b8a59cc0e03f8704f1d7c8122fc8f7ef8548362d"
},
{
"type": "WEB",
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9crm-g4mf-wc5j.yml"
},
{
"type": "PACKAGE",
"url": "https://github.com/sporkmonger/addressable"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1"
}
],
"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"
}
],
"summary": "Addressable display_uri can show misleading hosts with invalid Punycode A-labels"
}
GHSA-FCCW-GX6Q-MH6C
Vulnerability from github – Published: 2026-12-01 21:44 – Updated: 2026-12-01 21:44Impact
Nameprep, part of IDNA2003, requires a label with a right-to-left character to have no left-to-right characters, and to start and end with a right-to-left character (Section 6 of RFC 3491 and Section 6 of RFC 3454). Without the rule, two strings with the same characters in a different order can display identically. Addressable::IDNA.to_unicode in the pure-Ruby IDNA implementation, and so Addressable::URI#display_uri, doesn't apply the rule, so it decodes labels that break it. The native implementation, which uses libidn, applies the rule and isn't affected.
When a label is next to a right-to-left label, the bidirectional algorithm can display its digits or letters on the other side of the dot between them. A label that breaks the rule lets an attacker choose which side they end up on, so a host under a domain the attacker controls can display identically to a host under a different domain. xn--1-3mcxl0f.23.example, under 23.example, is displayed as 1شركة.23.example, which in a left-to-right context renders the same as شركة.123.example, a host under 123.example.
The practical risk is limited. The target host has to have a right-to-left label with digits next to the dot on either side of it, such as 123 in شركة.123.example, and the attacker needs a domain whose name completes the target's, such as 23.example for a host under 123.example. A user has to trust the displayed host. The rule applies to each label separately, so even with it, two hosts made of valid labels can display identically, such as اب.1.example and 1.اب.example.
Affected Versions
This vulnerability affects Addressable >= 2.0.0 when the pure-Ruby IDNA implementation is in use, which is when the idn-ruby gem isn't installed. It is fixed in 2.10.0, where the pure-Ruby to_unicode returns a label that breaks the rule unchanged, as libidn does.
Workarounds
- Install libidn and the
idn-rubygem, so that Addressable uses the native IDNA implementation. - Don't make security decisions on
display_uriorto_unicodeoutput. Compare hosts usingnormalized_host.
Proof of Concept
require "addressable/uri"
%w(
https://xn--ogbpi5d.123.example/
https://xn--1-3mcxl0f.23.example/
).each do |input|
uri = Addressable::URI.parse(input)
puts uri.display_uri.host
end
With the pure-Ruby implementation, affected versions print two hosts that render identically in a left-to-right context:
شركة.123.example
1شركة.23.example
With the native implementation, or in fixed versions, the second line is xn--1-3mcxl0f.23.example.
Credits
Found by Bob Aman (@sporkmonger).
For more information
If there are any questions or comments about this advisory: * Open an issue
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 2.9.2"
},
"package": {
"ecosystem": "RubyGems",
"name": "addressable"
},
"ranges": [
{
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.10.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-141530"
],
"database_specific": {
"cwe_ids": [
"CWE-1007",
"CWE-451"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-01T21:44:23Z",
"nvd_published_at": null,
"severity": "LOW"
},
"details": "### Impact\n\nNameprep, part of IDNA2003, requires a label with a right-to-left character to have no left-to-right characters, and to start and end with a right-to-left character (Section 6 of RFC 3491 and Section 6 of RFC 3454). Without the rule, two strings with the same characters in a different order can display identically. `Addressable::IDNA.to_unicode` in the pure-Ruby IDNA implementation, and so `Addressable::URI#display_uri`, doesn\u0027t apply the rule, so it decodes labels that break it. The native implementation, which uses libidn, applies the rule and isn\u0027t affected.\n\nWhen a label is next to a right-to-left label, the bidirectional algorithm can display its digits or letters on the other side of the dot between them. A label that breaks the rule lets an attacker choose which side they end up on, so a host under a domain the attacker controls can display identically to a host under a different domain. `xn--1-3mcxl0f.23.example`, under `23.example`, is displayed as `1\u0634\u0631\u0643\u0629.23.example`, which in a left-to-right context renders the same as `\u0634\u0631\u0643\u0629.123.example`, a host under `123.example`.\n\nThe practical risk is limited. The _target_ host has to have a right-to-left label with digits next to the dot on either side of it, such as `123` in `\u0634\u0631\u0643\u0629.123.example`, and the attacker needs a domain whose name completes the target\u0027s, such as `23.example` for a host under `123.example`. A user has to trust the displayed host. The rule applies to each label separately, so even with it, two hosts made of valid labels can display identically, such as `\u0627\u0628.1.example` and `1.\u0627\u0628.example`.\n\n### Affected Versions\n\nThis vulnerability affects Addressable \u003e= 2.0.0 when the pure-Ruby IDNA implementation is in use, which is when the `idn-ruby` gem isn\u0027t installed. It is fixed in 2.10.0, where the pure-Ruby `to_unicode` returns a label that breaks the rule unchanged, as libidn does.\n\n### Workarounds\n\n- Install libidn and the `idn-ruby` gem, so that Addressable uses the native IDNA implementation.\n- Don\u0027t make security decisions on `display_uri` or `to_unicode` output. Compare hosts using `normalized_host`.\n\n### Proof of Concept\n\n```ruby\nrequire \"addressable/uri\"\n\n%w(\n https://xn--ogbpi5d.123.example/\n https://xn--1-3mcxl0f.23.example/\n).each do |input|\n uri = Addressable::URI.parse(input)\n puts uri.display_uri.host\nend\n```\n\nWith the pure-Ruby implementation, affected versions print two hosts that render identically in a left-to-right context:\n\n```\n\u0634\u0631\u0643\u0629.123.example\n1\u0634\u0631\u0643\u0629.23.example\n```\n\nWith the native implementation, or in fixed versions, the second line is `xn--1-3mcxl0f.23.example`.\n\n### Credits\n\nFound by Bob Aman (@sporkmonger).\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* [Open an issue](https://github.com/sporkmonger/addressable/issues)",
"id": "GHSA-fccw-gx6q-mh6c",
"modified": "2026-12-01T21:44:23Z",
"published": "2026-12-01T21:44:23Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-fccw-gx6q-mh6c"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/commit/f44193750649a2e05f3971b46b19e9a3f19d35d7"
},
{
"type": "PACKAGE",
"url": "https://github.com/sporkmonger/addressable"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Addressable pure IDNA implementation skips the nameprep bidi rule, so hosts under different domains can display identically"
}
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.