Commit Graph

5659 Commits

Author SHA1 Message Date
Matt Miller 9cf91339b7
Fix SVG previews broken by the stored-XSS forced-download (#15149)
* Fix SVG previews broken by the stored-XSS forced-download

/view and the assets download route force every SVG to
application/octet-stream + attachment. That blocks the stored XSS from
GHSA-779p-m5rp-r4h4, but it also breaks the SVG node output and Media
Assets previews, which request the file with a plain <img>.

Exempt only that case. An SVG referenced by an <img> loads in secure
static mode with scripting and external references disabled, so the
payload cannot fire. The attack needs the SVG to become a document,
which arrives with a different Sec-Fetch-Dest. Browsers set that header
themselves and page script cannot override it. A missing header, from a
non-browser client or a proxy that strips it, fails closed.

The blocklist itself is unchanged; this is a call-site gate.

* Don't let a cache replay the inline SVG into document context

The Sec-Fetch-Dest exemption makes /view and the assets content route vary
their Content-Type and Content-Disposition on a request header, but neither
response said so. FileResponse emits Last-Modified/ETag and the cache_control
middleware skips /view (the filename is in the query string, not the path), so
the inline image/svg+xml variant is heuristically cacheable. A cache keyed on
the URL alone could hand an entry primed by an <img> load to a later top-level
navigation of the same URL, turning the SVG back into a document and
re-enabling the stored XSS the forced download blocks.

Set Vary: Sec-Fetch-Dest and Cache-Control: no-store on both branches, not just
the exempt one: a cached attachment replayed to an <img> would re-break the
preview this fix exists to restore.

Also strip parameters from content_type before building the assets response.
mime_type there is uploader-supplied and unvalidated, and aiohttp rejects a
charset in the content_type argument with ValueError, so a stored
"image/svg+xml; charset=utf-8" turned a valid inline SVG into a 500.

Route-level guards now pin the headers on both branches and the parameterised
mime type; all three fail against the previous commit.
2026-07-29 23:29:36 -07:00
Denis 7374157e95
fix(jobs): prefer media over text for job preview_output (#14681) 2026-07-29 23:26:14 -07:00
kaalibro c65f9f169c
Fix user.css loading broken by #14734 (#15000) 2026-07-29 23:00:16 -07:00
comfyanonymous f73e8cde88
Fallback to cudnn attention on linux if flash attention doesn't work. (#15146) 2026-07-29 18:10:28 -07:00
comfyanonymous 4f874c5e3a
Update comfy-kitchen to fix flux kv issue. (#15144) 2026-07-29 14:10:01 -07:00
Barish Ozbay e651b7bef5
Fix LTXAV crash when sampling without an audio latent (#15132) 2026-07-28 20:24:08 -07:00
Kohaku-Blueleaf 42d2aa5543
[Dataset/Security,Feature] Add dataset folder to avoid arbitrary folder access for dataset stuff. (#14807) 2026-07-28 19:03:04 -04:00
Jukka Seppänen c38171ddb9
Support Pruna LTX VAE (#15129) 2026-07-28 18:25:55 -04:00
rattus fbe6d3ca8f
Add configurable DETAIL logging side channel (#15064) 2026-07-28 17:31:45 -04:00
rattus c01175530e
Load weights to process RAM with MRU policy using pinning infrastructure (#15027) 2026-07-28 17:05:57 -04:00
Jukka Seppänen 3d41e3ea4e
Support int8 convrot embedding lookup (#15035) 2026-07-28 17:02:57 -04:00
comfyanonymous 628cdec592
Update comfy-kitchen package version to 0.2.23 (#15112) 2026-07-28 17:01:53 -04:00
comfyanonymous a8c44f9b2a ComfyUI v0.29.0 2026-07-28 16:58:41 -04:00
comfyanonymous 99f221c7f5
Go back to older rocm for portable. (#15127) 2026-07-28 13:46:44 -07:00
Daxiong (Lin) e8f8c2ff43
chore: update workflow templates to v0.11.19 (#15123) 2026-07-29 00:45:57 +08:00
Alexander Piskun f4509ff213
[Partner Nodes] feat(Recraft): add V4.1 model (#15105)
* [Partner Nodes] feat(Recraft): add V4.1 models and V4 image edit nodes

Signed-off-by: bigcat88 <bigcat88@icloud.com>

* [Partner Nodes] chore(Recraft): change old nodes names to contain "V3"

Signed-off-by: bigcat88 <bigcat88@icloud.com>

* [Partner Nodes] fix(Recraft): remove v4 model from the image edit nodes; fix the default "strength" value

Signed-off-by: bigcat88 <bigcat88@icloud.com>

* [Partner Nodes] chore(Recraft): remove new image edit nodes

Signed-off-by: bigcat88 <bigcat88@icloud.com>

---------

Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-28 18:39:34 +03:00
Alexander Piskun cd0eddaf16
[Partner Nodes] feat(credits): respect "X-Comfy-Credits-Used" header from the comfy-api (#15091)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2026-07-28 15:17:23 +03:00
comfyanonymous 6e36e12970
Update stable portable release workflow. (#15113) 2026-07-27 23:31:55 -04:00
Jukka Seppänen a3572c4832
Allow using float fps for LTXVEmptyLatentAudio (#15106) 2026-07-27 13:04:14 -07:00
Alexander Piskun c06ee57933
[Partner Nodes] feat(Anthropic): add Claude Opus 5 model (#15079)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-27 20:10:44 +03:00
Daxiong (Lin) 093d571b83
chore: update embedded docs to v0.5.9 (#15092) 2026-07-27 08:59:14 +08:00
comfyanonymous 02c688429e
Update AGENTS.md (#15096) 2026-07-26 17:21:05 -04:00
Jukka Seppänen 806e092ed4
Fix MageFlow on cards that don't support bf16 (#15081) 2026-07-25 21:01:51 -04:00
comfyanonymous f966a2b38c
Optimize ideogram model using comfy kitchen rms rope. (#15080) 2026-07-25 15:09:26 -04:00
Alexander Piskun fad06e5da4
[Partner Nodes] feat(Anthropic): add Claude Opus 5 to OpenRouter node (#15075)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-25 20:25:58 +03:00
Jukka Seppänen 6f6c500c15
Improve LTXV IC-lora detection (#15073) 2026-07-25 14:30:37 +03:00
Jukka Seppänen 45ffd5430b
feat: Support MageFlow (CORE-372) (#15026) 2026-07-24 23:14:01 -04:00
rattus 36aec0d086
cli_args: bump clamp to 128BGB (#15068)
Some long running chaos testing on a 512GB RAM RTX6000 pro showed that this
is a little bit too low for common template workflows switching around. The
original number was just a guess from me, so go with the scientific result
instead.
2026-07-24 19:48:52 -04:00
rattus f8a3fd9d79
upscalers: convert latent_upsampler model to DynamicVram (#15063)
These were alll non-dynamic (some non-ModelPatcher) code path calling
FreeMemory for management requiring up-front memory freeing. Convert it
to dynamic to avoid legacy free behaviour mixing into otherwise
dynamic workflows.
2026-07-24 13:34:40 -07:00
comfyanonymous 7c59a078d6
Use comfy kitchen rope functions in ltx models. (#15056) 2026-07-24 15:17:31 -04:00
Daxiong (Lin) c0ca3a5991
chore: update workflow templates to v0.11.17 (#15059) 2026-07-24 19:13:09 +08:00
comfyanonymous 0cb84e7e6e
Make Ernie use comfy kitchen rms rope (#15055) 2026-07-23 22:06:52 -04:00
Alexander Piskun feca51a854
[Partner Nodes] chore(Runway): deprecate Gen3a model (#15050)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-23 19:27:55 +03:00
Alexander Piskun 7cbe047447
[Partner Nodes] feat(ByteDance): add new "seed-audio-1.0-multilingual" model (#15034)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-23 18:32:46 +03:00
Comfy Org PR Bot a449f5f987
Bump comfyui-frontend-package to 1.47.10 (#15045) 2026-07-23 10:59:00 +02:00
comfyanonymous 2e47082c8e
Make z image/lumina 2 models use comfy kitchen rms rope. (#15036) 2026-07-22 15:34:27 -04:00
Daxiong (Lin) 54ca9193a3
chore: update workflow templates to v0.11.15 (#15030) 2026-07-23 00:49:39 +08:00
Alexander Piskun f6d30bce9a
[Partner Nodes] feat(Anthropic): add new models (#15023)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-22 17:31:26 +03:00
Alexander Piskun ba5226db96
[Partner Nodes] feat(Openrouter): add new models (#15021)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-22 17:20:18 +03:00
comfyanonymous 947c2749dd
Use optimized rms_rope function in joyai image model. (#15018) 2026-07-21 20:02:45 -07:00
cloud-code-bot[bot] 7bf8bfcd07
ci: bump cursor-review to github-workflows@964d5aa (#15017) 2026-07-21 12:00:10 -07:00
Alexander Piskun 78b43d2500
[Partner Nodes] fix(Gemini-Omni): pass videos as inline data (#15014)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-07-21 18:19:53 +03:00
Barish Ozbay ac3a7a654f
Add native Uni3C Controlnet support for Wan models (CORE-365) (#14946)
* Add native Uni3C controlnet support for Wan models

* Dispatch double_block patches in all Wan model variants

* Remove unused grid_sizes assignment in CameraWanModel, WanModel_S2V, HumoWanModel, and AnimateWanModel
2026-07-21 15:44:14 +03:00
TheToxin-git 593786e489
FreSca: 5D+ (ex. Anima) fix, model-agnostic iteration (#15007)
* FreSca: Make fresca work on multi dim
2026-07-21 14:43:34 +03:00
Kohaku-Blueleaf d0fec2ef7e
[Trainer,Dataset/Feature] Video processing nodes, Image Processing Node video support, trainer video support (CORE-81) (#13588) 2026-07-21 00:02:54 -04:00
Matt Miller 0384bb25f4
chore: add /AGENTS.md to CODEOWNERS (#14962)
Scope AGENTS.md review to @comfyanonymous, matching the existing /CODEOWNERS, /.ci/, and /.github/ meta-file entries.
2026-07-20 23:46:05 -04:00
comfyanonymous 35c94d6023
Fix gfx1035 not being treated like RDNA2 (#15009) 2026-07-20 23:36:03 -04:00
Jukka Seppänen ecba6f2594
feat: Support Gemma4 12B (CORE-277) (#14304) 2026-07-20 19:33:26 -04:00
comfyanonymous 6665515349
Fix wan dancer issue with batches. (#14999) 2026-07-19 15:13:49 -07:00
comfyanonymous c9602625e4
Implement regular and timestep zero reference images to krea 2 for ostris and identity edit ref loras. (#14843) 2026-07-18 17:12:18 -07:00