Starting November 15, 2025, Outlook on the web and new Outlook for Windows will update inline image handling by replacing tokenized URLs with content IDs (cid) in the HTML. Add-ins must update parsing logic to use content IDs and new APIs to correlate and retrieve inline images securely.
Introduction
Starting November 15, 2025, Outlook on the web and the new Outlook for Windows will begin rolling out an update to how inline images are represented in the HTML body of emails. This change is part of Microsoft’s ongoing security improvements and will affect how Outlook add-ins identify and process inline images using the attachment ID. Specifically, the update transitions from using tokenized image URLs to a more secure method using content IDs and request headers.
When this will happen:
This change will begin rolling out on November 15, 2025, to Production users. Rollouts to other environments will begin after Production rollouts are 100% complete.
How this affects your organization:
What's changing:
Previously, inline images in the HTML mail body were represented with a URL containing the attachment ID as a query parameter. Developers could parse the HTML and do one of the following.
Going forward, the URL for inline images will no longer contain the attachment ID. As a result, your current parsing logic won’t be able to correlate the inline image in the mail body with the attachment ID or Base64 value of the image.
What will happen:
cid value from the src attribute of the <img> element.Office.context.mailbox.item.getAttachmentsAsync to retrieve an AttachmentDetailsCompose object.contentId property from the object to the cid value in the HTML.office.context.mailbox.item.getAttachmentContentAsync. Example AttachmentDetailsCompose object:
[
{
"id": "AAkALgAAAAAAHYQDEapmEc2byACqAC/EWg0AW4xUByFbp0CroCNphMYEEAADMWhyywAAARIAEADghOrwhp8zR7umVQRBkN51",
"name": "image.png",
"contentType": "image/png",
"size": 2371,
"attachmentType": "file",
"isInline": true,
"contentId": "7957e11a-ce80-438b-87cd-611b3d6a3ec4"
}
]
What you can do to prepare:
cid value from the src attribute of inline images.getAttachmentsAsync to match the content ID with the image.Compliance considerations:
Placing the content ID in the src attribute matches how classic Outlook on Windows represents inline images.
| Compliance Area | Explanation |
|---|---|
| Does the change alter how existing customer data is processed, stored, or accessed? | Inline image retrieval now uses secure headers instead of tokenized URLs, changing how image data is accessed. |
| Does the change modify how users can access, export, delete, or correct their personal data within Microsoft 365 services? | The method for accessing inline image data in emails is updated, which may affect how add-ins handle personal data. |