Skip to content

Entity expansion limit exceeded error in 4.5.5 #813

@H1Gdev

Description

@H1Gdev
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?
  • Have you checked the docs for helpful APIs and examples?

Description

  • 4.5.5
    Entity expansion limit exceeded: 1088 > 1000
  • 4.5.4
    parse operation succeeds.

Compatibility was not maintained between version 4.5.4 and 4.5.5.

The following was found in CHANGELOG.md:

**5.3.6 / 2026-02-14**
- Improve security and performance of entity processing
  - new options `maxEntitySize`, `maxExpansionDepth`, `maxTotalExpansions`, `maxExpandedLength`, `allowedTags`,`tagFilter`
  - fast return when no edtity is present
  - improvement replacement logic to reduce number of calls

Input

Input XML file is the same for both 4.5.4 and 4.5.5 tests.

Code

  const options = {
    ignoreAttributes: false,
  };
  const parser = new XMLParser(options);
  const xmpObject = parser.parse(buffer.toString('utf8'), true);

Output

Entity expansion limit exceeded: 1088 > 1000

expected data

parse operation succeeds.

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates. Visit SoloThought to know about recent features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions