7.1.8
π Security fix β Issue #220
Closes the transitive high-severity advisory GHSA-v5pm-xwqc-g5wc / CVE-2026-49451 (CVSS 7.5, CWE-674 Uncontrolled Recursion β a circular $ref schema could stack-overflow the OpenAPI reader; availability / process-termination only).
- Bumped
Swashbuckle.AspNetCore.SwaggerGen10.0.0β10.2.1on the net10.0 target, which resolves the transitiveMicrosoft.OpenApifrom the vulnerable2.3.0to the patched2.7.5. - The net8.0 / net9.0 targets use Swashbuckle
8.1.1βMicrosoft.OpenApiv1 and were never in the advisory range β left unchanged. - No public API or OpenAPI output changes β dependency + version bump only.
π IFormFile media type & file size validation β Issue #216
Stable rollup of the work previously shipped as 7.1.8-beta.1 / 7.1.8-beta.2:
- New File-level FluentValidation rules in
MicroElements.OpenApi.FluentValidation.FileUpload:.FileContentType(params string[]),.MaxFileSize(long),.MinFileSize(long),.FileSizeBetween(long, long)onIRuleBuilder<T, IFormFile>. - Swashbuckle, NSwag, and Microsoft.AspNetCore.OpenApi emit
multipart/form-dataencoding.contentTypefor file parts and append the allowed types / size limits to the file propertydescription. - Purely additive / opt-in β output only changes when the new rules are used.
Full changelog: https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation/blob/master/CHANGELOG.md