Description
Memos' webhook dispatch function safeDialContext (internal/webhook/webhook.go) resolves the target hostname via net.DefaultResolver.LookupHost and validates the resulting IPs against reserved ranges, but then dials net.JoinHostPort(host, port) using the original hostname rather than the already-validated IP address.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| usememos | memos | ≤ 0.29.1 | — |
References
- https://github.com/usememos/memos third-party-advisory
- https://github.com/usememos/memos/blob/main/internal/webhook/webhook.go third-party-advisory