{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-85022",
        "assignerOrgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
        "state": "PUBLISHED",
        "assignerShortName": "VulDB",
        "dateReserved": "2026-09-02T19:47:18.388Z",
        "datePublished": "2026-09-03T00:45:14.971Z",
        "dateUpdated": "2026-09-03T00:45:14.971Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
                "shortName": "VulDB",
                "dateUpdated": "2026-09-03T00:45:14.971Z"
            },
            "title": "langgenius dify WebApp Sign-In mail-and-password-auth.tsx router.replace cross site scripting",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "cweId": "CWE-79",
                            "lang": "en",
                            "description": "Cross Site Scripting"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "cweId": "CWE-94",
                            "lang": "en",
                            "description": "Code Injection"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "langgenius",
                    "product": "dify",
                    "versions": [
                        {
                            "version": "1.13.0",
                            "status": "affected"
                        }
                    ],
                    "cpes": [
                        "cpe:2.3:a:langgenius:dify:*:*:*:*:*:*:*:*"
                    ],
                    "modules": [
                        "WebApp Sign-In"
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "version": "4.0",
                        "baseScore": 5.1,
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P",
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "baseScore": 3.5,
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:C",
                        "baseSeverity": "LOW"
                    }
                },
                {
                    "cvssV3_0": {
                        "version": "3.0",
                        "baseScore": 3.5,
                        "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:C",
                        "baseSeverity": "LOW"
                    }
                },
                {
                    "cvssV2_0": {
                        "version": "2.0",
                        "baseScore": 4,
                        "vectorString": "AV:N/AC:L/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:C"
                    }
                }
            ],
            "timeline": [
                {
                    "time": "2026-09-02T00:00:00.000Z",
                    "lang": "en",
                    "value": "Advisory disclosed"
                },
                {
                    "time": "2026-09-02T02:00:00.000Z",
                    "lang": "en",
                    "value": "VulDB entry created"
                },
                {
                    "time": "2026-09-02T21:52:29.000Z",
                    "lang": "en",
                    "value": "VulDB entry last update"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "trebledj (VulDB User)",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "VulDB CNA Team",
                    "type": "coordinator"
                }
            ],
            "references": [
                {
                    "url": "https://vuldb.com/vuln/398289",
                    "name": "VDB-398289 | langgenius dify WebApp Sign-In mail-and-password-auth.tsx router.replace cross site scripting",
                    "tags": [
                        "vdb-entry",
                        "technical-description"
                    ]
                },
                {
                    "url": "https://vuldb.com/vuln/398289/cti",
                    "name": "VDB-398289 | CTI Indicators (IOB, IOC, TTP, IOA)",
                    "tags": [
                        "signature",
                        "permissions-required"
                    ]
                },
                {
                    "url": "https://vuldb.com/cve/CVE-2026-85022",
                    "name": "CVE-2026-85022 | CVE Analysis and Report",
                    "tags": [
                        "third-party-advisory"
                    ]
                },
                {
                    "url": "https://vuldb.com/submit/880602",
                    "name": "Submit #880602 | langgenius dify 1.13.0 DOM-Based XSS, Open Redirect",
                    "tags": [
                        "third-party-advisory"
                    ]
                },
                {
                    "url": "https://huntr.com/bounties/184a858e-05b2-4a06-bb32-2d77cbc363fe",
                    "tags": [
                        "related"
                    ]
                },
                {
                    "url": "https://github.com/langgenius/dify/security/advisories/GHSA-7vhm-2r2w-hgg4",
                    "tags": [
                        "broken-link"
                    ]
                },
                {
                    "url": "https://gist.github.com/TrebledJ/0e8466e5c39a6fb7dca8a3acdfbe2ddc#file-cvd_dify_vuln2_20260705-md",
                    "tags": [
                        "exploit"
                    ]
                },
                {
                    "url": "https://github.com/langgenius/dify/",
                    "tags": [
                        "product"
                    ]
                }
            ],
            "x_generator": [
                "VulDB PVTS v202609"
            ]
        }
    }
}