All vulnerabilities

Servers and applications

GHSA-8wjw-mmj9-f5xg

Attachment header suppression XSS

Severity
High
Published
16 Sept 2026
Last changed
16 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.8.41
Weakness
CRLF injection (CWE-93)
Sources
Project advisories (GitHub)

Description

The attachment component does not handle special characters in filenames inserted into security-relevant HTTP headers correctly, resulting in a JavaScript code injection (stored XSS) vulnerability.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

The attachment.php module returns stored attachments for preview or download utilizing the Content-Disposition HTTP header. While PHP may omit headers containing newline characters to prevent header injection issues, the same behavior leads to omitting security-relevant headers.

A crafted filename may exploit this effect to prevent the application from attaching the Content-Disposition header, which, combined with the appropriate content type headers, results in a text/html response where the payload contained in the attachment file is executed by the browser instead of triggering file download.

From mybb/mybb's security advisory.

Affected software

SoftwareAffected versions
MyBBServers and applications · github:mybb/mybb
  • Every version before 1.8.41

About MyBB

open-source forum software

From Wikidata, CC0 1.0.
Docker Hub pulls
195,687Docker Hub, 15 Nov 2026
GitHub stars
1,251GitHub, 15 Nov 2026
Forks
445GitHub, 15 Nov 2026
Latest release
mybb_1841GitHub, 15 Nov 2026
Released
16 Sept 2026GitHub
License
GNU General Public License, version 3.0, GNU Lesser General Public License, version 3.0Wikidata
Written in
PHPWikidata
First released
2002Wikidata
First published on GitHub
13 Jun 2012GitHub

References