VYPR
Unrated severityNVD Advisory· Published Aug 6, 2004· Updated Apr 16, 2026

CVE-2004-0591

CVE-2004-0591

Description

Cross-site scripting in SqWebMail's print_header_uc() allows remote attackers to inject arbitrary script via malformed email headers or MIME content.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Cross-site scripting in SqWebMail's print_header_uc() allows remote attackers to inject arbitrary script via malformed email headers or MIME content.

Vulnerability

A cross-site scripting (XSS) vulnerability exists in the print_header_uc function (file folder.c) of SqWebMail versions 4.0.4 and earlier, and possibly 3.x [1], [2]. The function does not properly sanitize output derived from email headers or from messages with a message/delivery-status MIME Content-Type, allowing injection of arbitrary HTML or script [1], [2]. The vulnerable code path is reachable when a user views an email with crafted content [2].

Exploitation

A remote attacker can exploit the flaw by sending a specially crafted email message to the victim's mailbox [2]. Two attack vectors exist: (1) including malicious script in email headers (e.g., `) — this requires that the victim has SqWebMail configured to display full headers (via preferences or the fullheaders CGI variable); (2) setting the MIME Content-Type header to message/delivery-status` with malformed content [2]. No authentication beyond the ability to send email to the target is required; the attacker does not need to be a valid user of the mail server [2].

Impact

If a victim views the malicious message using SqWebMail, the injected script executes in the context of their browser session [1], [3]. This can lead to session information leakage (e.g., cookie theft), modification of the SqWebMail application's behavior, or other actions possible with the victim's privileges [2], [3]. The scope of compromise is limited to the web application's session; no direct server-side access is granted.

Mitigation

The vulnerability is fixed in SqWebMail versions included in Courier 0.45.6.20040618 and later [2], [3]. Users are advised to upgrade to the latest version of Courier, which includes the patched SqWebMail [3]. For Debian GNU/Linux, the fix is included in DSA-533 [4]. No effective workaround is known for unpatched installations [3].

AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No 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

6

News mentions

0

No linked articles in our index yet.