# CVE-2026-42827: Microsoft M365 Copilot command injection

Source: https://junglewise.ai/threats/cve-2026-42827-microsoft-m365-copilot-command-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-22. Updated: 2026-05-26  
License: CC BY 4.0 with a link back

CVE-2026-42827 · Severity: medium · CVSS 6.5 · Published 2026-05-22

Microsoft M365 Copilot, an AI-powered productivity tool, is vulnerable to a command injection flaw. This security issue could allow an unauthorized attacker to trick the system into disclosing sensitive information over the network. Successful exploitation could lead to the unauthorized exposure of corporate or personal data handled by the AI assistant.

Technologies: [Microsoft M365 Copilot](https://junglewise.ai/threats/technologies/m365-copilot). Vendors: [Microsoft](https://junglewise.ai/threats/vendors/microsoft).

## Quick answers

**Is CVE-2026-42827 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-42827 being exploited in the wild.

**How severe is CVE-2026-42827?** Medium severity, with a CVSS score of 6.5, published 22 May 2026.

**Which products and versions are affected?** Microsoft M365 Copilot.

**Is there a fix for CVE-2026-42827?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-42827 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-42827?** Check whether you run Microsoft M365 Copilot. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A command injection vulnerability (CWE-77) exists in Microsoft M365 Copilot due to improper neutralization of special elements used in commands. An unauthenticated attacker can exploit this over the network, though the CVSS vector indicates that user interaction is required (UI:R). Successful exploitation allows for unauthorized information disclosure (Confidentiality: High), potentially leaking sensitive data processed by the Copilot service. The vulnerability is specific to the M365 Copilot hosted service environment.

## Affected products

- Microsoft M365 Copilot

## Timeline

- 2026-05-22: advisory: Initial advisory published by Microsoft and NVD.

## References

- [https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-42827](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-42827)

## Related threats

- [Microsoft M365 Copilot incorrect permission assignment in critical resource](https://junglewise.ai/threats/cve-2026-85887-microsoft-m365-copilot-incorrect-permission-assignment-in)
- [Microsoft M365 Copilot command injection privilege escalation](https://junglewise.ai/threats/cve-2026-85885-improper-neutralization-of-special-elements-used-in-a-command)
- [Microsoft M365 Copilot command injection information disclosure](https://junglewise.ai/threats/cve-2026-42824-microsoft-m365-copilot-command-injection-information-disclosure)
- [Microsoft M365 Copilot command injection](https://junglewise.ai/threats/cve-2026-42893-microsoft-m365-copilot-command-injection)
