# Wp Parsidate <= 6.5.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Number Converter

- **ID:** WPSEC-2026-4038
- **Plugin:** Parsi Date | بسته فارسی ساز وردپرس و ووکامرس پارسی دیت (`wp-parsidate`), https://wordpress.org/plugins/wp-parsidate/
- **Affected versions:** from 6.1 before 6.6
- **Fixed in:** 6.6 (Update to 6.6 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-parsidate
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4038/

## Description

The Parsi Date plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post content processed by the Persian number converter in all versions up to, and including, 6.5.2. The converter parsed content with DOMDocument and re-serialized it with saveHTML(), and libxml wrote attribute text following '&{' back unescaped, so escaped attribute content (for example inside a <title> element) could be turned into live markup after sanitization. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary web scripts in pages that will execute whenever a user accesses an affected page, when the number conversion feature is enabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-4038/
- https://plugins.svn.wordpress.org/wp-parsidate/tags/6.6/
- https://wordpress.org/plugins/wp-parsidate/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4038/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
