CVE-2026-48590
JSON

2.1low

Element and Attribute Names Injected Verbatim into XML Output in xml_builder

Severity
2.1low CVSS:4.0 by EEF
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-48590GHSA-r82p-3q2p-728w

Description

XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection. This vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.element/1, XmlBuilder.element/2, XmlBuilder.element/3. Element names, attribute names, and doctype identifiers are interpolated verbatim into the serialized XML output without validation or escaping of structural characters (<, >, ", ', &). An attacker who can influence a name argument (for example, an element name derived from a JSON object key or an HTTP form field name) can inject arbitrary XML markup including extra elements, comments, and event-handler attributes into the output document. This issue affects xml_builder: from 0.0.1 before 2.4.1.

Affected

Product or packageVersionsReported by
xml_builderfrom 0.0.1 before 2.4.1CVE List
joshnuss/xml_builderfrom 9fb49131ad3ee146a4c9db9bc175bdffe32e30a0 before d5c0aec32a8eecbb440fb9bbb0f59d4d188d5859CVE List
xml_builder (Hex)from 0.0.1 before 2.4.1Erlang Ecosystem Foundation
https://github.com/joshnuss/xml_builderfrom 9fb49131ad3ee146a4c9db9bc175bdffe32e30a0 before d5c0aec32a8eecbb440fb9bbb0f59d4d188d5859Erlang Ecosystem Foundation

All scores

EEF2.1low CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N

Classification

CWE-91

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection. This vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.element/1, XmlBuilder.element/2, XmlBuilder.element/3. Element names, attribute names, and doctype identifiers are interpolated verbatim into the serialized XML output without validation or escaping of structural characters (<, >, ", ', &). An attacker who can influence a name argument (for example, an element name derived from a JSON object key or an HTTP form field name) can inject arbitrary XML markup including extra elements, comments, and event-handler attributes into the output document. This issue affects xml_builder: from 0.0.1 before 2.4.1.

Erlang Ecosystem Foundation

Summary

XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection.

This vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.element/1, XmlBuilder.element/2, XmlBuilder.element/3.

Element names, attribute names, and doctype identifiers are interpolated verbatim into the serialized XML output without validation or escaping of structural characters (<, >, ", ', &). An attacker who can influence a name argument (for example, an element name derived from a JSON object key or an HTTP form field name) can inject arbitrary XML markup including extra elements, comments, and event-handler attributes into the output document.

This issue affects xml_builder: from 0.0.1 before 2.4.1.

NVD (es)

Vulnerabilidad de inyección XML en joshnuss xml_builder (módulo XmlBuilder) permite la suplantación de contenido, inyección XML. Esta vulnerabilidad está asociada con los archivos de programa lib/xml_builder.ex y las rutinas de programa XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.element/1, XmlBuilder.element/2, XmlBuilder.element/3. Los nombres de elementos, nombres de atributos e identificadores de tipo de documento (doctype) se interpolan textualmente en la salida XML serializada sin validación ni escape de caracteres estructurales (<, >, ', ', &). Un atacante que puede influir en un argumento de nombre (por ejemplo, un nombre de elemento derivado de una clave de objeto JSON o un nombre de campo de formulario HTTP) puede inyectar marcado XML arbitrario incluyendo elementos adicionales, comentarios y atributos de gestor de eventos en el documento de salida. Este problema afecta a xml_builder: desde 0.0.1 anterior a 2.4.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-48590 changed 2026-11-19CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-48590 changed 2026-11-26CC-BY-4.0
NVDCVE-2026-48590 changed 2026-11-19Public domain