Skip to content

[Audit] Harden email SMTP TLS (requireTLS for STARTTLS) #448

Description

@RaminNietzsche

Background

Distinct from webhook SSRF (#426).

Problem

Email channel (server/services/notifications/channels/email.ts) configures Nodemailer with host/port/secure: port===465 only — no requireTLS for STARTTLS (587), enabling downgrade/cleartext risk.

Proposed solution

  • Default requireTLS: true for non-465
  • Env to allow insecure lab SMTP only
  • Document recommended SMTP settings in PRODUCTION.md

Acceptance criteria

  • Default refuses plain SMTP after STARTTLS failure
  • Insecure mode requires explicit env
  • Unit test for transport options

Priority

P2 / Medium

Complexity

Small

Evidence

server/services/notifications/channels/email.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions