# CVE-2021-29435: Cross-Site Request Forgery (CSRF) in trestle-auth

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2021-04-13T17:00:21.000Z
- Modified: 2026-07-08T06:29:41.235Z
- Also known as: GHSA-h8hx-2c5r-32cf
- Weaknesses: CWE-352
- Assigned by: GitHub_M

## Description

trestle-auth is an authentication plugin for the Trestle admin framework. A vulnerability in trestle-auth versions 0.4.0 and 0.4.1 allows an attacker to create a form that will bypass Rails' built-in CSRF protection when submitted by a victim with a trestle-auth admin session. This potentially allows an attacker to alter protected data, including admin account credentials. The vulnerability has been fixed in trestle-auth 0.4.2 released to RubyGems.

(As written by CVE List.)

## Affected

- TrestleAdmin trestle-auth: >= 0.4.0, < 0.4.2
- trestle-auth (RubyGems): from 0.4.0 before 0.4.2
- trestle-auth_project trestle-auth: 0.4.0; 0.4.1

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/TrestleAdmin/trestle-auth/security/advisories/GHSA-h8hx-2c5r-32cf> (third-party-advisory, web)
- <https://github.com/TrestleAdmin/trestle-auth/commit/cb95b05cdb2609052207af07b4b8dfe3a23c11dc> (patch, third-party-advisory, web)
- <https://rubygems.org/gems/trestle-auth> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29435> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/trestle-auth/CVE-2021-29435.yml> (web)

## Sources

- CVE List: [CVE-2021-29435](https://www.cve.org/CVERecord?id=CVE-2021-29435), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-h8hx-2c5r-32cf](https://github.com/advisories/GHSA-h8hx-2c5r-32cf), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-29435](https://nvd.nist.gov/vuln/detail/CVE-2021-29435), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29435 · Whole record: https://cve.day/CVE-2021-29435.json · Rebuilt by cve.day 2026-11-25T22:58:00.800Z
