Form-Data Boundary Injection
// form-data@4.0.3 - predictable boundary
const boundary = '----' + Math.random().toString(36);
formData.append('file', buffer, {
contentType: 'image/png'
}); // Updated to form-data@4.0.4 + crypto boundary
import { randomBytes } from 'crypto';
const boundary = '----' + randomBytes(16).toString('hex');
formData.append('file', buffer, {
contentType: 'image/png',
knownLength: buffer.length
}); Impact: Prevents HTTP request manipulation attacks