If you find a security vulnerability in hclapi, please report it privately. Don't open public issues for security vulnerabilities.
hclapi uses trunk-based development and does not maintain previous release branches.
Security fixes are provided only for the latest release. Older releases are not maintained and should be upgraded to the latest version when a security issue is fixed.
The preferred way to report a vulnerability is through GitHub Security Advisories.
You can also contact the maintainer directly using the email address listed in the Git commit history.
Please include:
- A summary of the vulnerability.
- A minimal
.hclmanifest,curlcommand, or other steps needed to reproduce it. - The expected impact and the actual impact you observed.
hclapi is a free, open-source project and does not operate a bug bounty program. Security reports are appreciated, but no payment or other reward should be expected.
We will review security reports and, when appropriate, publish fixes along with security release notes.
hclapi includes several protections by default:
- SQL injection: SQL queries use prepared statement parameters (
$1,?,@p1). Raw string interpolation is not supported. - Denial of service (DoS): Request bodies are limited with
http.MaxBytesReaderto prevent memory exhaustion from oversized payloads. - Sandboxed Starlark: Starlark scripts run in an isolated memory sandbox with no network or filesystem access, and execution is strictly step-bounded.
- Header injection (CRLF): Dynamic header keys and values are sanitized to remove
\rand\nbefore being written to the HTTP transport. - Information leakage: Internal database connection strings, credentials, and raw stack traces are never exposed in client error responses.