doc/user/application_security/remediate/auto_remediation.md
{{< details >}}
{{< /details >}}
{{< history >}}
dependency_management_auto_remediation. Disabled by default.{{< /history >}}
Auto remediation automatically opens a merge request to bump a vulnerable dependency to a non-vulnerable version when one is available. A service account creates the merge request without any human input, which then goes through the standard review and approval process.
For the beta roadmap and planned improvements, see epic 18236.
Prerequisites:
dependency_management_auto_remediation
feature flag must be
enabled.To trigger vulnerability detection and auto remediation, run a pipeline. Auto remediation triggers automatically when vulnerabilities with available fixes are detected.
After each pipeline, GitLab checks dependency scan results for vulnerabilities with known fix versions. For each eligible vulnerability:
During the experiment phase, GitLab processes three vulnerabilities at a time, starting with the highest severity finding.
Administrators can limit how many auto remediation scheduler jobs
run concurrently across the Sidekiq fleet. Use the
security_update_scheduler_max_concurrency
application setting to set the cap. The default is 30,
and the value is capped at 200. Set the value to 0 to pause scheduling.
Auto remediation supports the following package managers:
| Language | Package Manager | Files |
|---|---|---|
| Ruby | Bundler | Gemfile, Gemfile.lock |
| Java | Maven | pom.xml |
| Java | Gradle | build.gradle, build.gradle.kts |
Support for additional ecosystems is planned. For details, see epic 21643.
During the experiment phase: