{"record":{"id":"44ab0d9c5822be8b","repo":"projectdiscovery/nuclei","slug":"no-template-severity-field-provided","errorCode":null,"errorMessage":"no template severity field provided","messagePattern":"no template severity field provided","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/templates/compile.go","lineNumber":567,"sourceCode":"\t}\n\n\tif template.Info.Authors.IsEmpty() {\n\t\treturn nil, errors.New(\"no template author field provided\")\n\t}\n\n\tnumberOfWorkflows := len(template.Workflows)\n\tif numberOfWorkflows > 0 && numberOfWorkflows != template.Requests() {\n\t\treturn nil, errors.New(\"workflows cannot have other protocols\")\n\t}\n\n\t// use default unknown severity\n\tif len(template.Workflows) == 0 {\n\t\tif template.Info.SeverityHolder.Severity == severity.Undefined {\n\t\t\t// set unknown severity with counter and forced warning\n\t\t\ttemplate.Info.SeverityHolder.Severity = severity.Unknown\n\t\t\tif options.Options.Validate {\n\t\t\t\t// when validating return error\n\t\t\t\treturn nil, errors.New(\"no template severity field provided\")\n\t\t\t}\n\t\t}\n\t}\n\n\t// Setting up variables regarding template metadata\n\toptions.TemplateID = template.ID\n\toptions.TemplateInfo = template.Info\n\toptions.StopAtFirstMatch = template.StopAtFirstMatch\n\n\tif template.Variables.Len() > 0 {\n\t\toptions.Variables = template.Variables\n\t}\n\n\t// if more than 1 request per protocol exist we add request id to protocol request\n\t// since in template context we have proto_prefix for each protocol it is overwritten\n\t// if request id is not present\n\ttemplate.validateAllRequestIDs()\n","sourceCodeStart":549,"sourceCodeEnd":585,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/templates/compile.go#L549-L585","documentation":"Error \"no template severity field provided\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/templates/compile.go:567 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}