PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.
| Version | Supported |
|---|---|
| 3.0.1+ | ✅ |
| 3.0.0 | ❌ (deprecated — see below) |
| 2.x | ✅ |
| 1.x | ❌ |
- v3.0.0 — contained two defects in the host/TLD parsing path:
a regex-construction issue in
Host::tld()that escaped only.characters, and a substring-match scheme detection inHostParserthat mis-classified URLs containinghttp://later in their path/query. Both are fixed in v3.0.1. We recommend upgrading immediately. No exploit details are published; seeCHANGELOG.mdfor the high-level description. - v3.0.x (hardening in v3.1.0) — Public Suffix List wildcard (
*) and exception (!) rules were ignored during suffix resolution, so hosts under wildcard suffixes (e.g.*.ck) could resolve a wrong registrable domain — relevant if you use the result for cookie scoping or host allowlisting. Non-http schemes (ftp://…) were also silently mis-parsed instead of rejected. Fixed in v3.1.0.
If you discover a security vulnerability within this package, please send an email to Alejandro Morelos at info@domainvalidity.dev. All security vulnerabilities will be promptly addressed.