Hi Scott,
For a self-hosted agent, the AzureFunctionApp task runs on the agent machine, so any OpenSSL binary/library reported by your client's scan needs to be identified on that agent rather than assumed to be an Azure-hosted component. Microsoft recommends keeping self-hosted agents and task versions current. Also, Microsoft currently recommends moving from AzureFunctionApp@1 to AzureFunctionApp@2 for new deployments. @1 is maintained for legacy pipelines.
On the affected agent, first identify exactly which OpenSSL installation the task is using:
which openssl
openssl version -a
and inspect the task's working directory for bundled OpenSSL libraries/binaries. If the vulnerable OpenSSL is part of the task bundle, update the Azure Pipelines task/agent rather than replacing the system OpenSSL manually.
If the scan is identifying the agent's system OpenSSL, update that package through the operating system's supported package manager. The Function App deployment task itself does not require you to pin a particular OpenSSL version.
The key distinction is whether the scanner found OpenSSL under the agent OS or inside the Azure Pipelines task directory. That determines whether the remediation is an OS package update or a task/agent update.