SharePoint 2019 - c42q0 - Potentially malicious xoml node

Adrian Durica 0 Reputation points
2025-12-11T10:54:46.7233333+00:00

I am using SharePoint 2010 SPD workflow on SharePoint 2019 with version 16.0.10417.20059 (October 14, 2025). I noticed that any workflows are failing to run.

In ULS I find error:

Potentially malicious xoml node: <ns2:CollectFeedbackTaskProcess OverdueRepeat="Weekly" x:Name="ID4" AllowReassign="False" DeleteTasksOnComplete="False" ContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160001133BD829BBAB24487CE7ADA4E341C69" Duration="{ActivityBind ROOT,Path=DurationforSerialTasks}" TaskProcessOwner="{x:Null}" DurationUnit="{Activity Bind ROOT,Path=DurationUnits}" Subject="{ActivityBind ID12946,Path=ReturnValue}" SendDefaultTaskNotifications="False" TaskDeletedOutcome="Dokončené" TaskProcessName="Zhromažďovanie pripomienok" CC="{ActivityBind ID12939,Path=ReturnValue}" ExpandGroups="{ActivityBind ROOT,Path=ExpandGroups}" Comments="{ActivityBind ID12945,Path=ReturnValue}" __Context="{ActivityBind ROOT,Path=__context}" AssignedTo="{ActivityBind ROOT,Path=Reviewers}" AllowChangeRequest="False" ListId="{ActivityBind ROOT,Path=__list}" __ActivationProperties="{ActivityBind ROOT,Path=__initParams}" PermissionSet="AssignedTo" DueDate="{ActivityBind ID12949,Path=ReturnValue}" Outcomes="Dokončené,Poslať pripomienky" Description="ShapeGuid={95B6F0CB-E06F-4827-B90F-EAAE53A2CA1C};PageId=0;ShapeId=19;" ItemId="{ActivityBind ROOT,Path=__item}" OverdueRepeatTimes="-1" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ns2="clr-namespace:Microsoft.Office.Workflow.Actions;Assembly=Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=null"> <ns2:OnTaskProcessStarted Description="Pri spustení procesu úlohy" x:Name="ID5"> <IfElseActivity x:Name="ID2100" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"> <IfElseBranchActivity x:Name="ID2101"> <IfElseBranchActivity.Condition> <RuleConditionReference ConditionName="__Rule_ID2000" />

I tried adding the following code to the web.config of the shp web application, but it didn't help:

<authorizedType Assembly="Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="Microsoft.Office.Workflow.Actions" TypeName="*" Authorized="True" />
	<authorizedType Assembly="Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Workflow.Actions" TypeName="CollectFeedbackTaskProcess" Authorized="True" />

Can you please help me solve this problem?

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-11T10:56:10.4466667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message you are encountering, "Potentially malicious xoml node," indicates that SharePoint is blocking the execution of your workflow due to security concerns regarding the XAML (XOML) content. This is often related to the way the workflow is defined or the specific activities it is trying to execute.

    Here are some steps you can take to troubleshoot and potentially resolve this issue:

    1. Check for Authorized Types: Ensure that the types used in your workflow are properly authorized in the web.config file. You seem to have added the necessary entries, but double-check that they are correctly formatted and that the assembly version matches your SharePoint installation.
    2. Review Workflow Definition: Look for any custom activities or references in your workflow that may not be recognized or authorized. If you are using any custom code or third-party actions, ensure they are properly registered and authorized.
    3. Sandboxed Solutions: If your workflow is using sandboxed solutions, ensure that the sandbox is configured correctly. Sometimes, errors can arise from misconfigurations in sandboxed environments.
    4. Upgrade Considerations: Since you are using SharePoint 2010 workflows on SharePoint 2019, consider migrating to Power Automate or other supported solutions. SharePoint 2010 workflows have been retired, and using them in newer environments can lead to compatibility issues.
    5. Debugging: Use ULS logs to gather more detailed information about the error. Look for any additional error messages that may provide insight into what is going wrong.
    6. Permissions: Ensure that the account running the workflow has the necessary permissions to execute all actions defined in the workflow.

    If these steps do not resolve the issue, you may need to consider redesigning the workflow using supported technologies or reaching out to Microsoft support for further assistance.


    References:

    0 comments No comments

  2. Steven-N 15,555 Reputation points Microsoft External Staff Moderator
    2025-12-11T12:34:54.4566667+00:00

    Hi Adrian Durica

    Thank you for reaching out to Microsoft Q&A forum

    Based on my research, the problem you're facing is related to recent security changes in SharePoint 2019 cumulative updates (CUs) that introduced stricter validation for workflow XOML files. The error:

    Potentially malicious xoml node: <ns2:CollectFeedbackTaskProcess
    

    is triggered because the CollectFeedbackTaskProcess activity is not allow-listed in the configuration files. This started after the September 2024 CU, which added a security fix requiring explicit allow-listing of workflow actions in web.config and owstimer.exe.config files. If these entries are missing or incorrect, workflows fail with event tag c42q0 in ULS logs.

    For more insight:

    https://adamsorenson.com/sharepoint-2016-2019-se-workflows-are-not-working-after-september-2024-update/

    https://blog.stefan-gossner.com/2024/12/11/resolved-trending-issue-problems-with-workflows-after-applying-september-2024-cu-for-sharepoint-2016-2019-se/

    Note: Microsoft is providing this information as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.

    About the reason why your current fix doesn't fit, I see you added:

    <authorizedType Assembly="Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="Microsoft.Office.Workflow.Actions" TypeName="*" Authorized="True" />
    	<authorizedType Assembly="Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Workflow.Actions" TypeName="CollectFeedbackTaskProcess" Authorized="True" />
    

    But The PublicKeyToken should not be null for Microsoft assemblies. It must match the actual assembly signature (usually 71e9bce111e9429c for SharePoint) and what you need to add these entries both in web.config for each web application AND in owstimer.exe.config because the Workflow Timer Service executes workflows.

    Therefore, in this context, instead of manual edits, use PowerShell WebConfigModifications to ensure consistency across all servers:

    Add-PSSnapin Microsoft.SharePoint.PowerShell
    $modification = New-Object Microsoft.SharePoint.Administration.SPWebConfigModification
    $modification.Path = "configuration/System.Workflow.ComponentModel.WorkflowCompiler/authorizedTypes/targetFx"
    $modification.Name = "authorizedType[@Assembly='Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' and @Namespace='Microsoft.Office.Workflow.Actions' and @TypeName='*' and @Authorized='True']"
    $modification.Sequence = 0
    $modification.Owner = "WorkflowFix"
    $modification.Type = [Microsoft.SharePoint.Administration.SPWebConfigModification+SPWebConfigModificationType]::EnsureChildNode
    $modification.Value = "<authorizedType Assembly='Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' Namespace='Microsoft.Office.Workflow.Actions' TypeName='*' Authorized='True' />"
    Get-SPWebApplication | ForEach-Object {
        $_.WebConfigModifications.Add($modification)
        $_.Update()
    }
    # Apply changes
    Install-SPApplicationContent
    

    After applying changes, restart IIS and the SharePoint Timer Service.

    Additionally, Microsoft released a December 2024 CU that auto-adds required entries for built-in actions. If possible, apply the latest CU and run the SharePoint Configuration Wizard to fix this automatically.

    Hope my answer will help you, for any further concern, kindly let me know in the comment section.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.