mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7903] [MERGED] fix(security): refuse certificates from the compromised eMudhra intermediates #7999
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7999
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7903
Author: @SpicyMarinara
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/emudhra-intermediate-block📝 Commits (3)
c68c982fix(security): refuse certificates from the compromised eMudhra intermediates590c8f3Merge branch 'staging' into fix/emudhra-intermediate-blockfc8299cMerge branch 'staging' into fix/emudhra-intermediate-block📊 Changes
3 files changed (+52 additions, -0 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/index.ts(+1 -0)➕
packages/server/src/lib/compromised-certificate-authorities.ts(+49 -0)📄 Description
Linked issue
Refs #7900
Why this change
The private keys of eight eMudhra intermediate certificate authorities were stolen (https://emudhra.we-have-a-problem.com/). Browsers have blocked them since 17 October. Node.js merged its fix today (nodejs/node#66871), but no Node release includes it yet. Until one does, Marinara's server trusts certificates signed with those keys, so someone who holds a key and can intercept traffic could pose as an AI provider. Node v24.16.0 accepted the incident's test site. SpicyMarinara asked for the block to ship in v2.5.1 as a minimal fix.
What changed
packages/server/src/lib/compromised-certificate-authorities.ts, imported first inindex.ts. It wrapstls.checkServerIdentity, whichtls.connectreads from the module object on every call (Nodelib/_tls_wrap.js:checkServerIdentity: tls.checkServerIdentity) and passes the full peer chain. After Node's own hostname check, it refuses any chain containing one of the eight compromised public keys (SPKI SHA-256). Each key's Sectigo cross-sign shares it, so the cross-signed chains are covered too. Built-infetch, undici (safeFetch/llmFetch) andhttpsall connect through this.## [2.5.1]→ Install, updates and security: one line, since this ships in v2.5.1.ponytail:. Delete the file and its import once the bundled Node contains nodejs/node#66871.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (boxes left for the human reviewer). The release owner asked for no test suite, so this was kept to a smoke check:
impacted-intermediates.jsonlist, recomputed from all 16 published certificates (8 intermediates, 8 cross-signs): 0 mismatches.https://dv-g3b-emudhra.we-have-a-problem.com/is refused ("its certificate comes from EM DV TLS CA - G3B, a compromised certificate authority").https://api.anthropic.com/andhttps://openrouter.ai/still connect.tsc --noEmitforpackages/serverpasses.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
None: no UI change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.