Skip to content

After updating httpx to the latest version, I’m consistently seeing a panic when httpx tries to classify certain HTML pages (likely deeply nested or malformed HTML). #2316

@exf1-l

Description

@exf1-l

Panic message:

panic: html: open stack of elements exceeds 512 nodes

Stack trace (from httpx):
github.com/projectdiscovery/httpx/common/pagetypeclassifier.htmlToText
github.com/projectdiscovery/httpx/common/pagetypeclassifier.(*PageTypeClassifier).Classify
github.com/projectdiscovery/httpx/runner.(*Runner).analyze
github.com/projectdiscovery/httpx/runner.(*Runner).process.func1
...

I am unsure of what triggered this but basically I was using httpx like this:
"cat hosts.txt| httpx -cl -sc -title -td -ct -server -vhost -o httpx-out.txt",

Now I have updated httpx on my 2 vps machine and both when doing this exhaustive lists of hosts, errored out like this so I do not know the actual url's that triggered this error. But in my localmachine where my httpx is still the older version, it worked completely fine.

I believe there is an issue in this new update, I am very bad at this hence I am really sorry if i have wasted your time in creating this issue if it is not legitimate, but this is what I noticed like after using httpx today morning and after updating it to the latest version.

Image

Metadata

Metadata

Assignees

Labels

Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions