CVE-2020-12137
Description
GNU Mailman 2.x before 2.1.30 stores scrubbed attachments as .obj files, allowing stored XSS in archives via MIME sniffing when served without Content-Type.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
GNU Mailman 2.x before 2.1.30 stores scrubbed attachments as .obj files, allowing stored XSS in archives via MIME sniffing when served without Content-Type.
Vulnerability
GNU Mailman versions 2.x before 2.1.30, when processing email attachments with unknown or no file extension, scrubs the attachment and stores it in the list archive with a .obj extension [1]. Many web servers (e.g., Apache httpd) do not have a MIME type mapping for .obj in their default configuration, so they serve these files without a Content-Type header [1]. This allows browsers to perform MIME sniffing, potentially interpreting the file as text/html if it contains HTML, leading to reflected or stored XSS [1].
Exploitation
An attacker sends an email to a Mailman-managed mailing list with an attachment that contains arbitrary HTML and JavaScript, but with an unknown or no file extension (or simply any attachment that Mailman classifies as application/octet-stream) [1]. Mailman scrubs the attachment and stores it with a .obj extension in the public list archive [1]. When a visitor views the archived message and the web browser loads the .obj file, the server may not provide a MIME type, causing the browser to MIME-sniff the content. If the attachment content is HTML, JavaScript within it executes in the context of the archive domain [1]. No authentication is required to trigger the XSS; the attacker only needs the ability to post to the list (which may be open) [1].
Impact
An attacker can execute arbitrary JavaScript in the browser of any visitor viewing the list archive, leading to potential data theft, session hijacking, or defacement. The XSS is stored and affects all viewers of the archive, not just the attacker [1]. The scope is the web domain hosting the archive.
Mitigation
The issue is fixed in Mailman 2.1.30 [1][2]. Users should upgrade to 2.1.30 or later [1]. As a workaround, administrators can add a MIME type mapping for .obj in the web server configuration (e.g., application/octet-stream) to force a proper Content-Type header [1]. Note that Mailman 2.x is EOL and tied to Python 2, which is also EOL; migration to Mailman 3 is recommended [3]. Fedora has released updated packages [4].
- security - mailman 2.x: XSS via file attachments in list archives
- security - Re: mailman 2.x: XSS via file attachments in list archives
- security - Re: mailman 2.x: XSS via file attachments in list archives
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G4COSBBEMJYLV7WSW5QTUJUOFJFK47KK/
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
23- GNU/GNU Mailmandescription
- osv-coords21 versionspkg:rpm/opensuse/mailman&distro=openSUSE%20Leap%2015.2pkg:rpm/suse/mailman&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/mailman&distro=SUSE%20Enterprise%20Storage%205pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/mailman&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/mailman&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/mailman&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/mailman&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/mailman&distro=SUSE%20Package%20Hub%2015%20SP2
< 2.1.34-lp152.7.3.1+ 20 more
- (no CPE)range: < 2.1.34-lp152.7.3.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.15-9.6.20.1
- (no CPE)range: < 2.1.15-9.6.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.17-3.20.1
- (no CPE)range: < 2.1.34-bp152.7.3.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
11- lists.opensuse.org/opensuse-security-announce/2020-10/msg00047.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00063.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6YCMGTTOXXCVM4O6CYZLTZDX6YLYORNF/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4COSBBEMJYLV7WSW5QTUJUOFJFK47KK/mitrevendor-advisoryx_refsource_FEDORA
- usn.ubuntu.com/4348-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.debian.org/security/2020/dsa-4664mitrevendor-advisoryx_refsource_DEBIAN
- bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/head:/NEWSmitrex_refsource_MISC
- www.openwall.com/lists/oss-security/2020/04/24/3mitremailing-listx_refsource_MLIST
- lists.debian.org/debian-lts-announce/2020/05/msg00002.htmlmitremailing-listx_refsource_MLIST
- www.openwall.com/lists/oss-security/2020/02/24/2mitrex_refsource_MISC
- www.openwall.com/lists/oss-security/2020/02/24/3mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.