{"id":"CVE-2021-29435","aliases":["CVE-2021-29435","GHSA-h8hx-2c5r-32cf"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Request Forgery (CSRF) in trestle-auth","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\n### Patches\nThe vulnerability has been fixed in trestle-auth 0.4.2 released to RubyGems.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [trestle-auth](https://github.com/TrestleAdmin/trestle-auth/issues)\n* Email the maintainer at [sam@sampohlenz.com](mailto:sam@sampohlenz.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"trestle-auth es un plugin de autenticación para el framework de administración de Trestle.&#xa0;Una vulnerabilidad en trestle-auth versiones 0.4.0 y 0.4.1, permite a un atacante crear un formulario que omitirá la protección CSRF incorporada de Rails cuando lo envíe una víctima con una sesión de administración de trestle-auth.&#xa0;Esto potencialmente permite a un atacante alterar los datos protegidos, incluyendo las credenciales de la cuenta de administrador.&#xa0;La vulnerabilidad ha sido corregida en trestle-auth versión 0.4.2,  publicada en RubyGems","source":"nvd"}],"published":"2021-04-13T17:00:21.000Z","modified":"2026-07-08T06:29:41.235Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":">= 0.4.0, < 0.4.2","status":"affected"}],"vendor":"TrestleAdmin","product":"trestle-auth","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.4.0","status":"affected","fixed":"0.4.2"}],"ecosystem":"RubyGems","package":"trestle-auth","purl":"pkg:gem/trestle-auth","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.4.0"},{"status":"affected","version":"0.4.1"}],"vendor":"trestle-auth_project","product":"trestle-auth","cpe":"cpe:2.3:a:trestle-auth_project:trestle-auth:0.4.0:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/TrestleAdmin/trestle-auth/security/advisories/GHSA-h8hx-2c5r-32cf","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/TrestleAdmin/trestle-auth/commit/cb95b05cdb2609052207af07b4b8dfe3a23c11dc","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://rubygems.org/gems/trestle-auth","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29435","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/trestle-auth/CVE-2021-29435.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29435","url":"https://www.cve.org/CVERecord?id=CVE-2021-29435","licence":"CVE Terms of Use","modified":"2024-08-03T22:02:51.930Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h8hx-2c5r-32cf","url":"https://github.com/advisories/GHSA-h8hx-2c5r-32cf","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:41.235Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29435","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29435","licence":"Public domain","modified":"2026-06-17T03:47:38.177Z"}],"updatedAt":"2026-11-25T22:58:00.800Z","epss":{"score":0.00663,"percentile":0.52966,"date":"2026-12-01T12:00:22.000Z"}}