# Review a Composer Security Advisory Against a Locked Release

https://ferkesh.net/zh/knowledgebase/article/composer-lock-security-advisory-staged-update

A lockfile makes the dependency set reproducible. When an advisory affects that set, identify the affected version and rehearse the smallest supported release change before promoting it.

![Workflow. Match the deployed set. Review the advisory. Test a scoped update. Record rollback criteria.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-16d.svg#composer-lock-security-advisory-staged-update)

## Identify the deployed dependency version

Compare the production release identifier with its saved composer.lock and the actual installed version from the approved inventory. Run Composer's audit checks against the relevant release data in a controlled workspace. Record the advisory identifier and affected package without copying credentials or internal paths.

## Review the available fix

Read the maintainer's patched version and supported requirements, check whether the package is direct or transitive, and identify constraints that prevent the fix. Avoid changing many unrelated dependency versions to resolve a single advisory unless the supported upgrade path requires it.

## Test a staged dependency change

Resolve the smallest approved update on a branch, then inspect the lockfile diff. Run representative tests on the deployment runtime. Review PHP and extension requirements and repeat the audit on the candidate set.

## Record promotion and rollback criteria

Capture the affected and fixed versions, release checks and expected rollback process. Treat a rollback to a known affected version as a separate risk decision for the release owner.

## Related guides

- [Check Composer Dependencies Against the Deployment PHP Runtime](https://ferkesh.net/knowledgebase/article/composer-lock-platform-deployment)
- [How to Check for Stale PHP OPcache After a Deployment](https://ferkesh.net/knowledgebase/article/php-opcache-stale-release-diagnostic)

## Official references

- [Composer CLI dependency audit](https://getcomposer.org/doc/03-cli.md#audit)

Ferkesh Hosting. Last reviewed November 27, 2026.
