{"record":{"id":"4c16951f599e0e59","repo":"RocketChat/Rocket.Chat","slug":"invalid-signature","errorCode":null,"errorMessage":"Invalid Signature","messagePattern":"Invalid Signature","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/meteor/server/lib/saml/lib/parsers/Response.ts","lineNumber":285,"sourceCode":"\t\tconst checkEither = signatureType === 'Either';\n\t\tconst checkResponse = signatureType === 'Response' || signatureType === 'All' || checkEither;\n\t\tconst checkAssertion = signatureType === 'Assertion' || signatureType === 'All' || checkEither;\n\t\tlet anyValidSignature = false;\n\n\t\tif (!this.serviceProviderOptions.cert) {\n\t\t\tif (checkResponse || checkAssertion) {\n\t\t\t\tSAMLUtils.log('Missing Signature validation params');\n\t\t\t\tthrow new Error('Unable to validate signature');\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif (checkResponse) {\n\t\t\tSAMLUtils.log('Verify Document Signature');\n\t\t\tif (!this.validateResponseSignature(xml, this.serviceProviderOptions.cert, response)) {\n\t\t\t\tif (!checkEither) {\n\t\t\t\t\tSAMLUtils.log('Document Signature WRONG');\n\t\t\t\t\tthrow new Error('Invalid Signature');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tanyValidSignature = true;\n\t\t\t}\n\t\t\tSAMLUtils.log('Document Signature OK');\n\t\t}\n\n\t\tif (checkAssertion) {\n\t\t\tSAMLUtils.log('Verify Assertion Signature');\n\t\t\tif (!this.validateAssertionSignature(assertionData.xml, this.serviceProviderOptions.cert, assertionData.assertion)) {\n\t\t\t\tif (!checkEither) {\n\t\t\t\t\tSAMLUtils.log('Assertion Signature WRONG');\n\t\t\t\t\tthrow new Error('Invalid Assertion signature');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tanyValidSignature = true;\n\t\t\t}\n\t\t\tSAMLUtils.log('Assertion Signature OK');","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0/apps/meteor/server/lib/saml/lib/parsers/Response.ts#L267-L303","documentation":"Error \"Invalid Signature\" thrown in RocketChat/Rocket.Chat.","triggerScenarios":"Thrown when the SAML Response signature fails cryptographic verification.","commonSituations":"See trigger scenarios.","solutions":["Update the IdP certificate in the SAML settings to the one currently used by the IdP to sign responses."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0","analyzedAt":"2026-08-18T15:26:39.429Z","contentChangedAt":"2026-08-18T15:26:39.429Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}