{"id":"PYSEC-2026-1260","aliases":["CVE-2026-22777","GHSA-562r-8445-54r2"],"title":"ComfyUI-Manager is Vulnerable to CRLF Injection in Configuration Handler","titleSource":"OSV","descriptionSource":"OSV","description":"## Impact\n\n**Vulnerability Type**: CRLF Injection via ConfigParser\n\nAn attacker can inject special characters into HTTP query parameters to add arbitrary configuration values to the `config.ini` file. This can lead to security setting tampering or modification of application behavior.\n\n**Affected Users**: Users running ComfyUI-Manager in environments where ComfyUI is configured with the `--listen` option to allow remote access.\n\n**CVSS Score**: 7.5 (High)\n\n## Patches\n\nFixed in the following versions:\n- **3.39.2** (v3.x branch)\n- **4.0.5** (v4.x branch)\n\nSanitization logic was added to the `write_config()` function to remove CRLF and NULL characters from all string values.\n\n## Workarounds\n\nIf upgrading is not possible:\n- Run ComfyUI-Manager only on trusted networks\n- Block external access via firewall\n- Run on localhost only without the `--listen` option\n\n## References\n\n- [CWE-93: Improper Neutralization of CRLF Sequences](https://cwe.mitre.org/data/definitions/93.html)\n- [OWASP CRLF Injection](https://owasp.org/www-community/vulnerabilities/CRLF_Injection)\n\n## Credit\n\nThis vulnerability was reported by:\n- 李存义 <xiaoheihei1107@gmail.com>\n- D0n9 Li <wyd0n9@gmail.com>\n- Swings <swing@mail.exp.sh>\n- Osword from SGLAB of Legendsec at Qi'anxin Group <zhzhdoai@gmail.com>","severity":"high","score":7.5,"published":"2026-07-07T16:03:18.326Z","modified":"2026-11-24T11:15:02.672Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"comfyui-manager","sources":[{"name":"OSV · PYSEC-2026-1260","url":"https://osv.dev/vulnerability/PYSEC-2026-1260"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.39.2"},{"introduced":"4.0.0"},{"fixed":"4.0.5"}],"type":"ECOSYSTEM"}],"versions":["4.0","4.0.1","4.0.1b1","4.0.1b2","4.0.1b3","4.0.1b4","4.0.1b5","4.0.2","4.0.3","4.0.3b1","4.0.3b2","4.0.3b3","4.0.3b4","4.0.3b5","4.0.3b6","4.0.3b7","4.0.4"],"fixed":["3.39.2","4.0.5"]}],"sourceAffected":[],"references":["https://github.com/Comfy-Org/ComfyUI-Manager/security/advisories/GHSA-562r-8445-54r2","https://nvd.nist.gov/vuln/detail/CVE-2026-22777","https://github.com/Comfy-Org/ComfyUI-Manager/commit/ef8703a3d7ab4e6ecda8f96e0c5816c23d1cb262","https://github.com/Comfy-Org/ComfyUI-Manager/commit/f4fa394e0f03b013f1068c96cff168ad10bd0410","https://github.com/Comfy-Org/ComfyUI-Manager","https://pypi.org/project/comfyui-manager","https://github.com/advisories/GHSA-562r-8445-54r2"],"sources":[{"name":"OSV","id":"PYSEC-2026-1260","modified":"2026-11-24T11:15:02.672553234Z","url":"https://osv.dev/vulnerability/PYSEC-2026-1260"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5}],"products":[],"remediation":[],"observedAt":"2026-11-24T12:05:29.813Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T00:45:31.076Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-24T12:40:36.861Z","attemptedAt":"2026-11-24T12:40:36.861Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-24T12:40:34.154Z","attemptedAt":"2026-11-24T12:40:34.154Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-24T12:40:35.752Z","attemptedAt":"2026-11-24T12:40:35.752Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-24T12:40:34.161Z","attemptedAt":"2026-11-24T12:40:34.161Z"}],"evidence":[{"source":"GitHub Advisory Database","id":"GHSA-562r-8445-54r2","url":"https://github.com/advisories/GHSA-562r-8445-54r2","modified":"2026-01-13T19:02:52Z","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","checkedAt":"2026-11-24T12:40:34.154Z"},{"source":"FIRST EPSS","id":"CVE-2026-22777","url":"https://www.first.org/epss/","probability":0.00866,"percentile":0.59587,"date":"2026-11-23","checkedAt":"2026-11-24T12:40:34.161Z"},{"source":"ENISA EUVD","id":"EUVD-2026-1864","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-1864","modified":"Jan 12, 2026, 1:22:32 PM","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","checkedAt":"2026-11-24T12:40:35.752Z"},{"source":"NVD","id":"CVE-2026-22777","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22777","modified":"2026-06-17T10:20:24.463","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","checkedAt":"2026-11-24T12:40:36.861Z"}],"aiSummary":null}