Rationale

Third-party dependencies are a major attack vector. GitLab requires Composition Analysis to detect known vulnerabilities in dependencies before they are merged.

Enforcement

  • SonarQube: Dependency-check plugin flags vulnerable libraries
  • SpotBugs: Dependency vulnerability detection

Requirements

  1. Run dependency scanning on every CI pipeline
  2. Block merge if critical/high vulnerabilities are found
  3. Maintain a Software Bill of Materials (SBOM)
  4. Review new dependencies before adding (license compatibility, maintenance status)
  5. Update vulnerable dependencies within SLA:
  6. Critical: 7 days
  7. High: 30 days
  8. Medium: 90 days

Allowed Licenses

License Status
MIT, Apache-2.0, BSD-⅔ Allowed
LGPL-2.1+ Allowed with review
GPL-2.0+ Prohibited
AGPL-3.0 Prohibited

References