Path traversal in Discourse - #VU165855
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote privileged user to write files outside the temporary directory used for custom emoji export.
The vulnerability exists due to improper pathname restriction in Discourse's custom emoji export when processing emoji names restored from a crafted backup. A remote privileged user can restore a backup containing crafted emoji names on a site with allow_restore enabled and trigger emoji export to write files outside its intended directory.