Summary
V's net.http can complete HTTPS handshakes without validating server certificates when validation is left at its default false setting. An on-path attacker may then intercept or modify traffic if an application uses the affected HTTP APIs without explicitly enabling certificate validation.
Affected context
The issue affects the V standard library's net.http TLS configuration and request APIs, including http.get, http.post, and http.fetch. It is relevant when applications rely on the default values of SSLConnectConfig.validate or FetchConfig.validate, and use either the mbedtls or OpenSSL backend without explicitly enabling certificate validation.
Exploit preconditions
- Attack surface: HTTPS connections made through the affected
net.httpAPIs - Required access: The attacker must be able to position themselves on the network path between the client and server
- Trigger point: The application initiates an HTTPS request with certificate validation disabled or left at its default
- Why exploitation is possible: The TLS handshake can complete without checking that the presented certificate is trusted and valid for the requested host
Why this happens
The underlying issue is a certificate-validation bypass mapped to CWE-295: Improper Certificate Validation. The HTTP TLS configuration defaults allow a handshake to proceed without verifying the server certificate, so an untrusted, expired, self-signed, or wrong-hostname certificate may be accepted. This leaves the connection vulnerable to interception by an on-path attacker.
Potential impact
- An attacker may intercept HTTPS traffic and access data sent over the connection.
- An attacker could modify requests or responses in transit.
- Credentials, tokens, or other sensitive information may be exposed.
- Applications relying on the connection for integrity could make decisions based on tampered responses.
General mitigation guidance
Defensive patterns focus on making certificate verification the secure default and ensuring that TLS connections validate both the certificate chain and hostname.
- Enable certificate validation explicitly wherever the API exposes a validation setting.
- Prefer client and library configurations that verify certificates by default.
- Avoid disabling validation to work around certificate deployment problems; correct trust stores and certificate configuration instead.
- Keep trust material controlled and limit the privileges and sensitive data available to network-facing clients.
How teams detect issues like this
Review code for uses of net.http request APIs and TLS configuration where certificate validation is omitted, disabled, or set to false.
Static analysis and code review can flag insecure defaults, configuration overrides, and exception paths that bypass verification. Policy checks can require certificate validation for outbound HTTPS connections, while runtime tests can verify rejection of untrusted, expired, and hostname-mismatched certificates.

