# CVE-2026-85022: langgenius dify DOM-based XSS in redirect URL handler

Source: https://junglewise.ai/threats/cve-2026-85022-langgenius-dify-dom-based-xss-in-redirect-url-handler  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-03. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-85022 · Severity: low · CVSS 3.5 · Published 2026-09-03

Dify is an open-source platform for building AI workflows and RAG pipelines. The application contains a DOM-based cross-site scripting (XSS) vulnerability in its redirect URL parameter handling. An attacker can craft a malicious link that, when clicked by a user, executes arbitrary JavaScript in the victim's browser, potentially stealing credentials or performing unauthorized actions on their behalf.

Technologies: [Langgenius Dify](https://junglewise.ai/threats/technologies/dify). Vendors: [Langgenius](https://junglewise.ai/threats/vendors/langgenius).

## Quick answers

**Is CVE-2026-85022 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-85022 being exploited in the wild.

**How severe is CVE-2026-85022?** Low severity, with a CVSS score of 3.5, published 3 September 2026.

**Which products and versions are affected?** Langgenius Dify 1.13.0.

**Is there a fix for CVE-2026-85022?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-85022 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-85022?** Check whether you run Langgenius Dify at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a DOM-based XSS flaw in the Splash layout component (web/app/(shareLayout)/components/splash.tsx) where the redirect_url URL parameter is passed unsanitized to router.replace(). The vulnerable code extracts the redirect_url from query parameters and passes it to router.replace() without filtering for the javascript: protocol; since router.replace() delegates to window.location, malicious javascript: URIs are executed client-side. An attacker must craft a URL that: (1) appears to be valid when combined with the origin, and (2) contains a valid app/share code at the end to bypass validation. The attack requires no authentication and is performed entirely client-side; a victim need only click a malicious link. The vendor was contacted early but did not respond, and the exploit is publicly available. Patches or fixes have not been provided by the maintainers.

## Affected products

- langgenius dify 1.13.0

## Timeline

- 2026-09-03: disclosed: Advisory published on NVD
- 2026-03-10: other: Disclosed to DiFy maintainers via GHSA following standard procedures
- 2026-03-13: other: Also disclosed on Huntr
- 2026-07-05: exploited: PoC published on GitHub gist by disclosure researcher after 90+ days without vendor response

## References

- [https://gist.github.com/TrebledJ/0e8466e5c39a6fb7dca8a3acdfbe2ddc](https://gist.github.com/TrebledJ/0e8466e5c39a6fb7dca8a3acdfbe2ddc)
- [https://github.com/langgenius/dify/](https://github.com/langgenius/dify/)

## Related threats

- [langgenius dify hard-coded credentials in sandbox](https://junglewise.ai/threats/cve-2026-123135-a-vulnerability-was-found-in-langgenius-dify-up-to-1-18-0-2-0-0)
- [Dify authorization bypass in MCP server endpoint](https://junglewise.ai/threats/cve-2026-105761-dify-is-an-open-source-llm-app-development-platform-prior-to-1)
- [langgenius Dify DOM-based XSS in splash.tsx redirect](https://junglewise.ai/threats/cve-2026-85021-langgenius-dify-dom-based-xss-in-splash-tsx-redirect)
- [LangGenius Dify server-side template injection in Jinja2 handler](https://junglewise.ai/threats/cve-2026-18632-langgenius-dify-server-side-template-injection-in-jinja2-handler)
- [LangGenius Dify open redirect in AppInitializer OAuth flow](https://junglewise.ai/threats/cve-2026-18266-langgenius-dify-open-redirect-in-appinitializer-oauth-flow)
