Skip to content

Namespace separator ':' incompatible with Expat >=2.4.5 <2.4.7 security fixes #289

@hartwork

Description

@hartwork

Hi @martinblech,

it was brought to my attention that xmltodict and Expat >=2.4.5 are not compatible. The incompatibility has two halves:

The API docs of XML_ParserCreateNS say:

This means that you should pick a character for sep that can't be part of an URI.

Colon can appear in a URI (RFC 3986), so a colon cannot be used as a namespace separator or there will be false positives. Use of " " (space) or "\n" (line feed) would work.

Would you be up for picking a different character for a namespace separator?

Thanks and best, Sebastian

CC libwbxml/libwbxml#76
CC libexpat/libexpat#572 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions