CVE-2026-85022 Details
Description
A vulnerability was identified in langgenius dify 1.13.0. Affected by this vulnerability is the function router.replace of the file web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx of the component WebApp Sign-In. Such manipulation of the argument redirect_url leads to cross site scripting. The attack may be performed from remote. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.
A cross-site scripting (XSS) vulnerability has been identified in Langgenius Dify version 1.13.0. The issue arises in the WebApp Sign-In component, specifically within the mail-and-password authentication and email-with-code verification flows. The vulnerability is rooted in the improper handling of the `redirect_url` parameter, which is extracted from the URL query and passed to `router.replace` without adequate sanitization. This oversight allows for the execution of arbitrary JavaScript in the context of the user's browser, potentially leading to credential theft or unauthorized actions on behalf of the user.
To address this vulnerability, it is recommended to validate and sanitize the `redirect_url` parameter before use. This can be done by ensuring the URL stays within the same origin, uses a safe scheme, and does not contain harmful JavaScript payloads.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 3, 2026CISA-ADP
Assessed Sep 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/TrebledJ/0e8466e5c39a6fb7dca8a3acdfbe2ddc#file-cvd_dify_vuln2_20260705-md | [email protected] | ExploitTechnical Analysis |
| https://github.com/langgenius/dify/ | [email protected] | ProductSource CodeVendor |
| https://github.com/langgenius/dify/security/advisories/GHSA-7vhm-2r2w-hgg4 | [email protected] | AdvisoryBroken LinkVendor |
| https://huntr.com/bounties/184a858e-05b2-4a06-bb32-2d77cbc363fe | [email protected] | ExploitTechnical Description |
| https://vuldb.com/cve/CVE-2026-85022 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/880602 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/398289 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/398289/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langgenius Dify | 1.13.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 3, 2026 | CVE Modified | CISA-ADP |
| Sep 3, 2026 | New CVE Received | [email protected] |
Volerion