CWE-248 · CWE-436
### Impact `write_attachments()` called `_safe_attachment_filename()` and `write_sample()` inside its loop with no guard, so a single crafted attachment raised out of the whole save. Every attachment **after** the malicious one was silently never written, with no error surfaced to a caller that catches only `MailParserError`. That is an evasion primitive as much as an availability bug: a sender puts one poisoned part first and the real payload second, and the payload never reaches the extraction directory that a downstream scanner or sandbox reads — while it still reaches the recipient's mail client intact. The tool's output diverges from the bytes actually in the message, which is the same failure mode as the filename-sanitizing bypass in [GHSA-fr3h-cpq2-9496](https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496). Three shapes were reachable, all from attacker-controlled MIME metadata: - **NUL smuggled through RFC 2231** — `filename*=us-ascii''evil%
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-129301
CVSS 6.5/10 · ORTA · 16.11.2026
CWE: CWE-248, CWE-436
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 AÇIK NEDİR?
Açıklama: ### Impact
write_attachments() called _safe_attachment_filename() and write_sample() inside its loop
with no guard, so a single crafted attachment raised out of the whole save. Every attachment
after the malicious one was silently never written, with no error surfaced to a caller that
catches only MailParserError. That is an evasion primitive as much as an availability bug: a sende…
Etkilenen: mail-parser
⚡ SALDIRI ZİNCİRİ
İnternet üzerinden uzaktan | kimlik doğrulama GEREKMİYOR | kullanıcı etkileşimi YOK | düşük karmaşıklık.
🌍 GERÇEK DÜNYA ETKİSİ
🛡️ ÇÖZÜM VE MİTİGASYON
→ mail-parser için üretici güvenlik güncellemesini uygula.
→ Yama öncesi: servis erişimini VPN arkasına al veya IP whitelist uygula.
→ WAF kuralı ekle, anormal trafik için IDS alert oluştur.
⚠️ ACİLİYET
📋 Rutin güncelleme (30 gün)
────────────────────────────────────────
[Kural Tabanlı Analiz] [💡 config.json dosyasına ai_key (Claude: sk-ant-... veya Groq: gsk_...) ekleyerek gerçek AI analizi kullanabilirsiniz]
[⚠️ AI key mevcut ancak istek başarısız — kural tabanlı analiz kullanıldı]