Skip to content

Azure Pipelines Agent v4.269.0 (Node 24) breaks MicrosoftSecurityDevOps@1 v1.18.1: crypto.createCipher is not a function #154

@AymenGlaied

Description

@AymenGlaied

Since upgrading the Azure Pipelines Agent to v4.269.0 (Node 24), pipelines that are decorated to run Microsoft Security DevOps (MSDO) fail with:

TypeError: crypto.createCipher is not a function
at _exposeTaskLibSecret (azure-pipelines-task-lib/internal.js:923:29)
...

Root cause:

  • Node.js removed crypto.createCipher() in v22 (DEP0106). This is why Node 24 throws "is not a function".
  • The MSDO Azure DevOps task (MicrosoftSecurityDevOps@1, v1.18.1) still calls this removed API via azure-pipelines-task-lib.

Impact:

  • Organization-wide impact if the task is injected via a pipeline decorator (no pipeline-level control to pin a different injected task version).

Environment:

  • Azure Pipelines Agent: v4.269.0
  • Node runtime: v24.x (agent default)
  • MSDO task: MicrosoftSecurityDevOps@1 v1.18.1

Metadata

Metadata

Assignees

Labels

area:pipelineAzure Pipelines integration and configurationarea:taskAzure DevOps build task definition and configurationdependenciesPull requests that update a dependency filepriority:highImportant, should be addressed soonstatus:approvedAccepted, ready to be worked ontype:securitySecurity vulnerability or hardening

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions