{"record":{"id":"4553856f062cf086","repo":"RocketChat/Rocket.Chat","slug":"invalid-assertion-signature","errorCode":null,"errorMessage":"Invalid Assertion signature","messagePattern":"Invalid Assertion signature","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/meteor/server/lib/saml/lib/parsers/Response.ts","lineNumber":298,"sourceCode":"\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');\n\t\t}\n\n\t\tif (checkEither && !anyValidSignature) {\n\t\t\tSAMLUtils.log('No Valid Signature');\n\t\t\tthrow new Error('No valid SAML Signature found');\n\t\t}\n\t}\n\n\tprivate validateResponseSignature(xml: string, cert: string, response: Element): boolean {\n\t\treturn this.validateSignatureChildren(xml, cert, response);\n\t}\n\n\tprivate validateAssertionSignature(xml: string, cert: string, assertion: Element): boolean {","sourceCodeStart":280,"sourceCodeEnd":316,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0/apps/meteor/server/lib/saml/lib/parsers/Response.ts#L280-L316","documentation":"Error \"Invalid Assertion signature\" thrown in RocketChat/Rocket.Chat.","triggerScenarios":"Thrown when the SAML Assertion signature fails cryptographic verification.","commonSituations":"See trigger scenarios.","solutions":["Update the IdP certificate in the SAML settings, or configure the IdP to sign the assertion with the expected certificate."],"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"}