CVE-2023-36031 in Dynamics 365info

Summary

by MITRE • 11/14/2023

Microsoft Dynamics 365 (on-premises) Cross-site Scripting Vulnerability

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 09/07/2026

The vulnerability identified in Microsoft Dynamics 365 on-premises represents a significant security risk classified as a cross-site scripting flaw, specifically falling under the Common Weakness Enumeration category CWE-79. This type of vulnerability arises when an application fails to properly validate, sanitize, or encode user-supplied input before including it in web pages served to other users. In the context of Dynamics 365 on-premises deployments, this weakness typically manifests within customizations, plugins, or unpatched components where dynamic content is rendered without adequate protection against script injection. The core technical flaw involves the server-side processing of data that contains malicious JavaScript payloads, which are then embedded into HTML responses and executed by the victim's web browser upon viewing the affected page.

From an operational perspective, this vulnerability allows attackers to execute arbitrary scripts in the context of the vulnerable application, effectively bypassing same-origin policy restrictions that normally isolate websites from each other. When a user with valid credentials accesses a compromised view or form within Dynamics 365, the injected script runs with the privileges of that authenticated session. This capability enables malicious actors to perform actions such as stealing sensitive business data, including customer records and financial information stored in the CRM system. Furthermore, attackers can manipulate page content, redirect users to phishing sites, or deface the user interface, thereby undermining trust in the enterprise resource planning platform and disrupting normal business operations.

The attack vector for this vulnerability is generally classified under ATT&CK technique T1059, which covers command and script interpretation, specifically focusing on browser-based execution through DOM manipulation. Attackers often deliver these payloads via social engineering tactics, such as sending malicious links embedded in emails or instant messages that direct victims to a specially crafted URL within the Dynamics 365 environment. Once triggered, the script can harvest session cookies, capture keystrokes, or initiate requests on behalf of the user without their knowledge. This is particularly dangerous because it leverages legitimate authentication tokens, making detection by traditional perimeter security controls more difficult compared to external network attacks.

Mitigation strategies must focus on both immediate remediation and long-term architectural hardening. The primary defense involves applying the latest cumulative updates or security patches released by Microsoft for the specific version of Dynamics 365 on-premises in use, as these releases typically contain fixes that enforce stricter input validation and output encoding mechanisms. Administrators should also implement Content Security Policy headers to restrict the sources from which scripts can be loaded, thereby limiting the impact even if a script injection occurs. Additionally, developers creating custom solutions for Dynamics 365 must adhere to secure coding practices, ensuring that all user inputs are validated against expected formats and encoded appropriately before being rendered in HTML contexts. Regular security assessments and penetration testing should be conducted to identify similar weaknesses in customized modules or third-party integrations connected to the platform.

Responsible

Microsoft

Reservation

06/20/2023

Disclosure

11/14/2023

Moderation

accepted

CPE

ready

EPSS

0.00938

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!