Skip to content

Deprecate and remove externally loaded entities in XML parsing #572

@drott

Description

@drott

WebKittens

@annevk

Title of the proposal

Deprecate loading of external entities in XML parsing

URL to the spec

https://www.w3.org/TR/xml/#proc-types

URL to the spec's repository

No response

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

No response

Mozilla standards-positions issue URL

Older bug report comment applies: https://bugzilla.mozilla.org/show_bug.cgi?id=22942#c135

WebKit Bugzilla URL

No response

Radar URL

No response

Description

In Blink, in our efforts to improve XML parsing security, we plan to deprecate and remove external loading of entities in XML parsing. We would like to hear WebKit's position.

In Blink, we supported this only when the server provided a specific mimetype: application/xml-external-parsed-entity.

We propose to remove this as the new parser we want to migrate to does not support this feature and it does not seem worthwhile to implement: executing a synchronous load during parsing is an inefficient design which blocks parsing, plus the usage is so low.

A workaround is to include the entities into the main document.

Further info:
Chromestatus Entry
Blink-dev I2D post

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions