Skip to content

Commit a21c441

Browse files
committed
update package detail
1 parent 239b64a commit a21c441

File tree

10 files changed

+129
-190
lines changed

10 files changed

+129
-190
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Note: Due to some last quick changes on v4, detail of v4.5.3 & v4.5.4 are not updated here. v4.5.4x is the last tag of v4 in github repository. I'm extremely sorry for the confusion
44

5+
**5.5.7 / 2026-03-19**
6+
- fix: entity expansion limits
7+
- update strnum package to 2.2.0
8+
59
**5.5.6 / 2026-03-16**
610
- update builder dependency
711
- fix incorrect regex to replace \. in entity name

docs/v4, v5/6.HTMLParsing.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,23 @@ Output
203203
</html>
204204
```
205205

206+
# Security
207+
208+
FXP faithfully expands DOCTYPE entities per the XML spec. If you render FXP output as HTML, you are responsible for escaping or sanitizing the values. FXP is an XML parser, not an HTML sanitizer. An XML used in different system can have diffrent pattern for a malicious string.
209+
210+
```js
211+
const xmlData = `<?xml version="1.0"?>
212+
<!DOCTYPE foo [
213+
<!ENTITY qt "<script>alert('XSS')</script>">
214+
<!ENTITY gt "">
215+
]>
216+
<root>
217+
<name>&qt;img src=x onerror=alert(1)&gt;</name>
218+
<data>Normal &lt;b&gt;text&lt;/b&gt; here</data>
219+
</root>`;
220+
221+
const parser = new XMLParser();
222+
const result = parser.parse(xmlData);
223+
```
224+
206225
[> Next: PI Tag processing](./7.PITags.md)

lib/fxp.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/fxp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxp.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxparser.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxparser.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)