{"record":{"id":"7e587eb11f7343dd","repo":"projectdiscovery/nuclei","slug":"boundary-exceeds-maximum-length-of-70-characters","errorCode":null,"errorMessage":"boundary exceeds maximum length of 70 characters","messagePattern":"boundary exceeds maximum length of 70 characters","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/fuzz/dataformat/multipart.go","lineNumber":154,"sourceCode":"\t_ = w.Close()\n\treturn b.String(), nil\n}\n\n// ParseBoundary parses the boundary from the content type\nfunc (m *MultiPartForm) ParseBoundary(contentType string) error {\n\t_, params, err := mime.ParseMediaType(contentType)\n\tif err != nil {\n\t\treturn err\n\t}\n\tm.boundary = params[\"boundary\"]\n\tif m.boundary == \"\" {\n\t\treturn fmt.Errorf(\"no boundary found in the content type\")\n\t}\n\n\t// NOTE(dwisiswant0): boundary cannot exceed 70 characters according to\n\t// RFC-2046.\n\tif len(m.boundary) > 70 {\n\t\treturn fmt.Errorf(\"boundary exceeds maximum length of 70 characters\")\n\t}\n\n\treturn nil\n}\n\n// Decode decodes the data from MultiPartForm format\nfunc (m *MultiPartForm) Decode(data string) (KV, error) {\n\tif m.boundary == \"\" {\n\t\treturn KV{}, fmt.Errorf(\"boundary not set, call ParseBoundary first\")\n\t}\n\n\t// Create a buffer from the string data\n\tb := bytes.NewBufferString(data)\n\tr := multipart.NewReader(b, m.boundary)\n\n\tform, err := r.ReadForm(32 << 20) // 32MB is the max memory used to parse the form\n\tif err != nil {\n\t\treturn KV{}, err","sourceCodeStart":136,"sourceCodeEnd":172,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/fuzz/dataformat/multipart.go#L136-L172","documentation":"Error \"boundary exceeds maximum length of 70 characters\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/fuzz/dataformat/multipart.go:154 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"}