Files
calibre-web/cps/services
jvoisin 224915bba1 Prevent XXE in epub/fb2/goodreads API
The lxml.etree.fromstring() function use the default XML parser, which resolves
external entities because XML handling defaults in Python sucks. There is no
need for such dangerous misfeatures in calibre-web, so let's disable it.

A user able to upload epub/fb2 could add something like this to the file:

```xml
<?xml version="1.0"?>
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
<container><rootfiles><rootfile full-path="&xxe;"/></rootfiles></container>
```

and obtain the content of the `/etc/passwd` file, which is bad™.
2026-04-14 22:12:57 +02:00
..
2022-04-26 14:45:06 +02:00
2024-09-16 17:25:37 +02:00
2025-03-30 12:03:12 +02:00
2022-01-30 11:15:14 +01:00
2024-06-20 19:12:46 +02:00
2024-06-20 19:12:46 +02:00
2025-09-08 17:31:43 +02:00