App Service Linux Python 3.13 image: Flask/virtualenv security fixes, rollout and recovery

Paul 0 Reputation points
2026-10-17T13:57:47.0866667+00:00

I am seeking guidance on Microsoft's published built-in Linux Python App Service image, rather than a custom application vulnerability.

The public image mcr.microsoft.com/appsvc/python:3.13_20261016.7.tuxprod resolves to sha256:9c4a62e766c9a1e18f20ecc1acbda08fbab8df41ba1bcabe9705dc3c79942126. In an isolated container test it runs Python 3.13.16 but its base Python environment still contains Flask 3.1.2, virtualenv 20.36.1 and appsvc-code-profiler 1.0.0.

A version-based public package audit flags Flask GHSA-68rp-wp8r-4726 (upstream fix 3.1.3) and virtualenv advisories including GHSA-p58f-9548-mpm2 (upstream fix 21.7.13). The Windows-only virtualenv activate.bat finding does not apply to Linux, and the bash/fish issue requires crafted path/activation conditions. These version matches do not establish exploitability or rule out Microsoft backports. The vendor-only profiler cannot be assessed through public PyPI.

Could the App Service team clarify:

  1. Are the relevant fixes backported in this image? If so, where is the corresponding image/build or security assurance documented?
  2. Which supported built-in Python 3.13 image contains the fixes, and how can customers establish its availability on the Standard release channel before changing a production app?
  3. Is installing patched versions in an application virtual environment sufficient for any relevant platform usage, or do separate base-interpreter services require an updated Microsoft image?
  4. What is the supported recovery path if a managed runtime update fails? Re-deploying application code or restoring app content does not appear to pin a prior managed image, and reverting a release channel does not guarantee an exact prior build.
  5. Where can customers find security support/update assurance for appsvc-code-profiler?

The goal is a supported patch and verification path with controlled production impact. No customer-specific identifiers or logs are included.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Allan Solomon Mejia 10,545 Reputation points
    2026-10-17T16:21:04.5133333+00:00

    Hello @Paul

    Thanks for providing the exact image tag, SHA256 digest, package versions, and vulnerability references. You've also made an important distinction between upstream security advisories and confirmed exploitability in Azure App Service.

    Since this concerns a Microsoft-maintained built-in Python 3.13 image, I agree that updating application dependencies alone may not fully address the packages installed in the platform's base environment.

    Let me address your questions individually.

    1. Are the security fixes backported into the image?

    Azure App Service manages operating system and runtime patching and uses safe deployment practices to minimize service disruption.

    However, I couldn't find public Microsoft documentation confirming whether the specific image digest you provided contains backported fixes for Flask, virtualenv, or appsvc-code-profiler.

    Package version numbers alone don't conclusively establish vulnerability status because vendors may backport fixes without changing upstream version numbers.

    For this particular image, Microsoft would need to confirm the applied patches or provide the relevant security assurance information.

    2. Which Python 3.13 image contains the fixes?

    The Platform Release Channel feature controls runtime patch rollout timing on Linux App Service.

    However, I couldn't verify a Microsoft-published Python 3.13 image digest that resolves all the advisories you've identified, or a confirmed rollout date for such an image on the Standard channel.

    I recommend confirming with the App Service engineering team before changing your production environment.

    3. Is updating the application virtual environment sufficient?

    Not necessarily.

    Python applications deployed with build automation use a virtual environment for application dependencies.

    Updating packages in that environment can address vulnerabilities in the application's installed dependencies, but it doesn't automatically update packages installed in the Microsoft-managed base image.

    The remaining question is whether the affected base-image packages are actually imported or executed in a vulnerable context.

    That requires examining their usage within the App Service runtime, rather than relying exclusively on package inventory.

    4. What is the supported recovery path if a runtime update fails?

    Microsoft documents deployment slots and application deployment rollback strategies for managing application changes.

    However, these mechanisms shouldn't be interpreted as guaranteed rollback capabilities for Microsoft-managed runtime images.

    Redeploying an earlier application package or swapping deployment slots doesn't guarantee restoration of a previously used platform image digest.

    For production workloads, I recommend validating application behavior in a staging environment before adopting a new runtime configuration and having a recovery plan for application-level changes.

    If a Microsoft-managed runtime update causes a platform-level regression, Microsoft Support should investigate the affected image and available remediation options.

    5. Where can customers obtain security assurance for appsvc-code-profiler?

    I couldn't find a public Microsoft security advisory or package-specific update record establishing the vulnerability status of appsvc-code-profiler 1.0.0 in the image you identified.

    Since this is a Microsoft-supplied component, I recommend confirming directly with the App Service engineering team rather than attempting to modify or remove it from the managed runtime.

    Recommended next step

    Given the specificity of your findings, I recommend opening an Azure App Service technical support request and asking for an image-level security assessment.

    Include the exact image tag and digest, observed package versions, associated GHSA advisories, and the results of your isolated container testing.

    Specifically request confirmation of:

    • Whether the identified vulnerabilities are applicable to the Microsoft-maintained runtime image.
    • Whether any fixes have been backported.
    • The first remediated image digest, if available, and its rollout status on the Standard channel.
    • The supported mitigation and recovery approach for affected production applications.
    • The security maintenance status of appsvc-code-profiler.

    I don't recommend modifying the built-in image or assuming that application-level package updates remediate every finding without this confirmation.

    Your findings provide useful evidence for an engineering investigation, but don't classify the specific image as patched or vulnerable in production without confirming the relevant package usage and Microsoft-maintained fixes.

    Hope this helps clarify the supported next steps.

    References:


    Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.

    Was this answer helpful?

    0 comments No comments

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.