{
  "schemaVersion": "ebb.rule.v1",
  "id": "nodejs.symbol.crypto.rsa-pss-options",
  "ecosystem": "nodejs",
  "purl": "pkg:generic/nodejs",
  "affectedVersions": "vers:semver/>=25.0.0",
  "event": "removed",
  "severity": "high",
  "title": "The hash and mgf1Hash options of RSA-PSS key generation have been removed",
  "summary": "Node.js removed the hash and mgf1Hash options of RSA-PSS key generation (DEP0154: documentation-only since v16.10.0, runtime deprecation since v20.0.0, end-of-life since v25.0.0).",
  "replacement": "the hashAlgorithm and mgf1HashAlgorithm options",
  "sources": [
    {
      "title": "Node.js deprecations: DEP0154",
      "url": "https://nodejs.org/api/deprecations.html",
      "accessedAt": "2026-10-21"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-21",
    "reviewedAt": "2026-10-21",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep the behavior of the code unchanged; check the replacement's argument and return-value differences."
    ],
    "steps": [
      {
        "id": "replace-symbol",
        "title": "Replace the usage",
        "instructions": "Replace each reported use of the hash and mgf1Hash options of RSA-PSS key generation with the hashAlgorithm and mgf1HashAlgorithm options.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
