{"id":"GHSA-f3qm-vfc3-jg6v","summary":"Possible CSRF attack at questionnaire templates preview","details":"### Impact\nThe CSRF authenticity token check is currently disabled for the questionnaire templates preview as per:\nhttps://github.com/decidim/decidim/blob/3187bdfd40ea1c57c2c12512b09a7fec0b2bed08/decidim-templates/app/controllers/decidim/templates/admin/questionnaire_templates_controller.rb#L11\n\nThis was introduced by this commit in the PR that introduced this feature (#6247):\nhttps://github.com/decidim/decidim/pull/6247/commits/5542227be66e3b6d7530f5b536069bce09376660\n\nThe issue does not imply a serious security thread as you need to have access also to the session cookie in order to see this resource. This URL does not allow modifying the resource but it may allow attackers to gain access to information which was not meant to be public.\n\n### Patches\n#11743\n\n### Workarounds\nDisable the templates functionality or remove all available templates.\n\n### References\n#11743","aliases":["CVE-2023-47635"],"modified":"2026-09-10T03:50:06.234153964Z","published":"2024-02-20T18:03:12Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-02-20T18:03:12Z","nvd_published_at":"2024-02-20T18:15:50Z","cwe_ids":["CWE-352","CWE-918"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/decidim/decidim/security/advisories/GHSA-f3qm-vfc3-jg6v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-47635"},{"type":"WEB","url":"https://github.com/decidim/decidim/pull/11743"},{"type":"WEB","url":"https://github.com/decidim/decidim/pull/6247"},{"type":"WEB","url":"https://github.com/decidim/decidim/commit/5542227be66e3b6d7530f5b536069bce09376660"},{"type":"WEB","url":"https://github.com/decidim/decidim/commit/57a4b467787448307b5d9b01ce6e2c8502e121ac"},{"type":"PACKAGE","url":"https://github.com/decidim/decidim"},{"type":"WEB","url":"https://github.com/decidim/decidim/blob/3187bdfd40ea1c57c2c12512b09a7fec0b2bed08/decidim-templates/app/controllers/decidim/templates/admin/questionnaire_templates_controller.rb#L11"},{"type":"WEB","url":"https://github.com/decidim/decidim/releases/tag/v0.27.5"},{"type":"WEB","url":"https://github.com/decidim/decidim/releases/tag/v0.28.0"}],"affected":[{"package":{"name":"decidim-templates","ecosystem":"RubyGems","purl":"pkg:gem/decidim-templates"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.23.0"},{"fixed":"0.27.5"}]}],"versions":["0.23.0","0.23.1","0.23.1.rc1","0.23.2","0.23.3","0.23.4","0.23.5","0.23.6","0.24.0","0.24.0.rc1","0.24.0.rc2","0.24.1","0.24.2","0.24.3","0.25.0","0.25.0.rc1","0.25.0.rc2","0.25.0.rc3","0.25.0.rc4","0.25.1","0.25.2","0.26.0","0.26.0.rc1","0.26.0.rc2","0.26.1","0.26.10","0.26.2","0.26.3","0.26.4","0.26.5","0.26.7","0.26.8","0.26.9","0.27.0","0.27.0.rc1","0.27.0.rc2","0.27.1","0.27.2","0.27.3","0.27.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-f3qm-vfc3-jg6v/GHSA-f3qm-vfc3-jg6v.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N"}]}