Skip to content

Commit ea511b6

Browse files
committed
Doc: Add small text explaining about Giraffe's secure XML parsing
1 parent dfb4226 commit ea511b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

DOCUMENTATION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,6 +3231,8 @@ By default Giraffe uses the `System.Xml.Serialization.XmlSerializer` for (de-)se
32313231

32323232
Customizing Giraffe's XML serialization can either happen via providing a custom object of `XmlWriterSettings` when instantiating the default `SystemXml.Serializer` or swap in an entire different XML library by creating a new class which implements the `Xml.ISerializer` interface.
32333233

3234+
Notice that Giraffe does secure XML parsing, i.e., when using the `Deserialize<'T>(xml: string)` method, both DTD (Document Type Definition) processing and external entities are disabled to prevent [XXE attacks](https://learn.snyk.io/lesson/xxe).
3235+
32343236
#### Customizing XmlWriterSettings
32353237

32363238
You can change the default `XmlWriterSettings` of the `SystemXml.Serializer` by registering a new instance of `SystemXml.Serializer` during application startup:

0 commit comments

Comments
 (0)