Advisories for Golang/Github.com/Charmbracelet/Soft-Serve package

2025

Soft Serve is vulnerable to SSRF through its Webhooks

SUMMARY We have identified and verified an SSRF vulnerability where webhook URLs are not validated, allowing repository administrators to create webhooks targeting internal services, private networks, and cloud metadata endpoints. AFFECTED COMPONENTS (VERIFIED) Webhook Creation (pkg/ssh/cmd/webhooks.go:125) Backend CreateWebhook (pkg/backend/webhooks.go:17) Backend UpdateWebhook (pkg/backend/webhooks.go:122) Webhook Delivery (pkg/webhook/webhook.go:97) IMPACT This vulnerability allows repository administrators to perform SSRF attacks, potentially enabling: a) Cloud Metadata Theft - Access AWS/Azure/GCP credentials via 169.254.169.254 b) Internal Network …

Soft Serve does not sanitize ANSI escape sequences in user input

In several places where the user can insert data (e.g. names), ANSI escape sequences are not being removed, which can then be used, for example, to show fake alerts. In the same token, git messages, when printed, are also not being sanitized. Places in which this was found: Repository Description (pkg/backend/repo.go - SetDescription) Repository Project Name (pkg/backend/repo.go - SetProjectName) Git Commit Author Names (pkg/ssh/cmd/commit.go:69) Git Commit Messages (pkg/ssh/cmd/commit.go:71) Access Token …

2024
2023

Soft Serve Public Key Authentication Bypass Vulnerability when Keyboard-Interactive SSH Authentication is Enabled

Impact A security vulnerability in Soft Serve could allow an unauthenticated, remote attacker to bypass public key authentication when keyboard-interactive SSH authentication is active, through the allow-keyless setting, and the public key requires additional client-side verification for example using FIDO2 or GPG. This is due to insufficient validation procedures of the public key step during SSH request handshake, granting unauthorized access if the keyboard-interaction mode is utilized. An attacker could …