Opened 60 minutes ago

Last modified 25 minutes ago

#37152 assigned Cleanup/optimization

EmailMessage should block `bcc` in `extra_headers` and docs should not suggest `bcc` is a header

Reported by: Natalia Bidart Owned by: diaxoaine
Component: Core (Mail) Version: 6.0
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Following a security report deemed invalid, there are two related improvements to EmailMessage that we should pursue:

  1. Add bcc to the extra_headers blocklist: EmailMessage.message() already blocks from, to, cc, and reply-to from being written into MIME headers via extra_headers, but bcc is missing.
  1. Clarify docs to avoid saying that bcc is a "header": docs describe it as addresses used in the "Bcc header," which is inaccurate. Bcc addresses are passed to the SMTP server as RCPT TO recipients and never written into the MIME message -- there is no Bcc header in the outgoing message. The word "header" should be removed from that description.

Change History (2)

comment:1 by Jacob Walls, 51 minutes ago

Triage Stage: UnreviewedAccepted

comment:2 by diaxoaine, 25 minutes ago

Owner: set to diaxoaine
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top