# GHSA-JJW2-G49P-RGHX: IPv6 address truncation and image proxy SSRF error leakage

- Database: GitHub
- Severity: CVSS 7.2 (High)
- Published: 2026-06-30
- Modified: 2026-06-30

## Affected versions

- github.com/umputun/remark42/backend (Go): from 1.0.0, fixed in 1.16.0

## Description

Two security issues were identified and fixed in v1.16.0 (#2016).

1. IPv6 IP Truncation
The vote deduplication and comment IP tracking code used strings.Split(r.RemoteAddr, ":")[0] to extract the client IP. For IPv6 addresses, this truncates to only the first segment (e.g. "2001" for any 2001:... address), causing unrelated users sharing that prefix to be treated as the same IP. This allows vote manipulation and bypasses rate limiting across independent users.

2. Image Proxy SSRF with Error Leakage
The /api/v1/img image proxy endpoint leaked internal network topology through verbose transport error messages (e.g. "connection refused", "no route to host", "no such host"). An attacker could port-scan internal services by observing error response differences. No SSRF-safe transport was in place to block private/reserved IP ranges.

Fixed in commit aca0cff, released in v1.16.0.

## References

- https://github.com/umputun/remark42/security/advisories/GHSA-jjw2-g49p-rghx

Page: https://cve.now/GHSA-JJW2-G49P-RGHX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
