diff --git a/xinclude.c b/xinclude.c index 9c144a1e..b6581558 100644 --- a/xinclude.c +++ b/xinclude.c @@ -1841,6 +1841,20 @@ xmlXIncludeExpandNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) { * The XInclude engine offers no protection against exponential * expansion attacks similar to "billion laughs". Avoid timeouts by * limiting the total number of replacements when fuzzing. + * + * Unfortuately, a single XInclude can already result in quadratic + * behavior: + * + * + * + * + * + * + * + * + * + * + * */ if (ctxt->incTotal >= 20) return(NULL);