mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4973] [MERGED] security: harden profile import trust boundaries #6563
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#6563
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/4973
Author: @SpicyMarinara
Created: 8/13/2026
Status: ✅ Merged
Merged: 8/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/profile-import-security-followup📝 Commits (9)
108c155security: expose quarantined profile contentac04ca0security: quarantine untrusted profile state21325d2chore: keep profile security diff focused1a731e6security: require review for imported endpoints44aaa43security: harden active media validation45dd779security: keep imported endpoints quarantined5353fc7security: apply profile import review fixes8caa6fcsecurity: close profile import review findingsee380d0security: stream validated media descriptors📊 Changes
26 files changed (+1986 additions, -237 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
package.json(+3 -1)📝
packages/client/src/components/panels/SettingsPanel.tsx(+54 -51)📝
packages/client/src/lib/card-css.ts(+89 -14)➕
packages/client/src/lib/profile-import-warnings.ts(+54 -0)📝
packages/client/src/localization/locales/en.json(+11 -0)📝
packages/server/src/db/schema/connections.ts(+2 -0)📝
packages/server/src/routes/avatars.routes.ts(+16 -24)📝
packages/server/src/routes/backgrounds.routes.ts(+16 -15)📝
packages/server/src/routes/backup.routes.ts(+309 -37)📝
packages/server/src/routes/characters.routes.ts(+21 -4)📝
packages/server/src/routes/custom-emojis.routes.ts(+21 -7)📝
packages/server/src/routes/custom-stickers.routes.ts(+21 -7)📝
packages/server/src/routes/gallery.routes.ts(+24 -6)📝
packages/server/src/routes/game-assets.routes.ts(+47 -11)📝
packages/server/src/routes/game.routes.ts(+8 -3)📝
packages/server/src/routes/global-gallery.routes.ts(+7 -3)📝
packages/server/src/routes/knowledge-sources.routes.ts(+26 -4)📝
packages/server/src/routes/sprites.routes.ts(+20 -19)📝
packages/server/src/services/import/profile-import-assets.ts(+62 -3)...and 6 more files
📄 Description
Why
A crafted Marinara profile could carry active or misleading state across the import trust boundary. The demonstrated v2.4.1 chain executed an enabled custom script on the first chat generation after import; staging already replaced that host node:vm path and quarantines imported executable tools. This follow-up closes the remaining profile-import paths without removing profile, extension, theme, asset, or Professor Mari capabilities.
No public issue is linked because this is a maintainer-requested security hardening follow-up.
What changes
Test plan
Summary by CodeRabbit
Security Improvements
User Experience
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.