mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4292] [MERGED] Bound NovelAI ZIP decompression output #6321
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#6321
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/4292
Author: @SpicyMarinara
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @SpicyMarinara
Base:
staging← Head:security/bound-novelai-zip-output📝 Commits (2)
9a860e8security: bound NovelAI ZIP decompression31cf4b0use DataView for ZIP size parsing📊 Changes
4 files changed (+154 additions, -13 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
package.json(+2 -1)📝
packages/server/src/services/image/image-generation.ts(+28 -12)➕
scripts/regressions/novelai-zip-security.regression.ts(+123 -0)📄 Description
Linked issue
Closes #4286
Why this change
Provider responses are untrusted input. NovelAI ZIP extraction needs a strict decompressed-output budget so a corrupted or adversarial archive cannot consume unbounded memory through misleading metadata or a high expansion ratio.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated proof completed before publication:
pnpm regression:novelai-zip-securitypnpm checkpnpm version:checkgit diff --check staging...security/bound-novelai-zip-outputManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG.mdis updated; no user guide underdocs/changes in this lane.UI evidence (if applicable)
Not applicable; this changes server-side provider response parsing.
Summary by CodeRabbit
Security
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.