You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Azure Pipelines Agent v4.269.0 (Node 24) breaks MicrosoftSecurityDevOps@1 v1.18.1: crypto.createCipher is not a function #154
changed the title [-]MicrosoftSecurityDevOps@1 (v1.18.1) fails with "crypto.createCipher is not a function" on Azure Pipelines Agent v4.269.0 (Node 24)[/-][+]Azure Pipelines Agent v4.269.0 (Node 24) breaks MicrosoftSecurityDevOps@1 v1.18.1: crypto.createCipher is not a function[/+]on Mar 12, 2026
Root cause identified: The azure-pipelines-task-lib dependency at version ^4.13.0 (resolves to 4.17.3) uses the deprecated crypto.createCipher() API in its _exposeTaskLibSecret() function. This API was removed in Node.js v22 (DEP0106), causing the TypeError: crypto.createCipher is not a function error when running under Node 24.
Fix: The upstream fix was merged in azure-pipelines-task-lib PR #1147, replacing createCipher with createCipheriv. This fix shipped in azure-pipelines-task-lib v5.2.4+. We are bumping our dependency from ^4.13.0 to ^5.2.4 to pick up this fix.
Activity
[-]MicrosoftSecurityDevOps@1 (v1.18.1) fails with "crypto.createCipher is not a function" on Azure Pipelines Agent v4.269.0 (Node 24)[/-][+]Azure Pipelines Agent v4.269.0 (Node 24) breaks MicrosoftSecurityDevOps@1 v1.18.1: crypto.createCipher is not a function[/+]DimaBir commentedon Mar 25, 2026
Thanks for reporting this issue.
Root cause identified: The
azure-pipelines-task-libdependency at version^4.13.0(resolves to 4.17.3) uses the deprecatedcrypto.createCipher()API in its_exposeTaskLibSecret()function. This API was removed in Node.js v22 (DEP0106), causing theTypeError: crypto.createCipher is not a functionerror when running under Node 24.Fix: The upstream fix was merged in azure-pipelines-task-lib PR #1147, replacing
createCipherwithcreateCipheriv. This fix shipped inazure-pipelines-task-libv5.2.4+. We are bumping our dependency from^4.13.0to^5.2.4to pick up this fix.Fix Node 24 compatibility: bump azure-pipelines-task-lib to 5.x
DimaBir commentedon Mar 26, 2026
Aymen Glaied (@AymenGlaied), merged. Thank you!