Skip to content

More robust HTML sanitizing in reports - #12997

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:report-fixes
Oct 13, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:report-fixes

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Sanitize user-facing inputs when exposing to mark-safe functionality in weasyprint reports

@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Oct 12, 2026
@SchrodingersGat SchrodingersGat added the report Report/Label generation label Oct 12, 2026
@netlify

netlify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit a6822a5
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6acd66e2b92cb9da4c185c42

@SchrodingersGat SchrodingersGat added backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x security Relates to a security issue labels Oct 12, 2026
@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.25%. Comparing base (db90e48) to head (a6822a5).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12997      +/-   ##
==========================================
+ Coverage   87.23%   87.25%   +0.02%     
==========================================
  Files        1512     1512              
  Lines      104148   104079      -69     
  Branches    11803    11761      -42     
==========================================
- Hits        90854    90816      -38     
+ Misses      13228    13200      -28     
+ Partials       66       63       -3     
Flag Coverage Δ
backend 92.05% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.66% <100.00%> (+<0.01%) ⬆️
Backend General 94.52% <ø> (ø)
Frontend 79.40% <ø> (+0.02%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit cdaf6e3 into inventree:master Oct 13, 2026
52 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
❌ 1.5.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 12997

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@santhoshdodo2721

santhoshdodo2721 commented Oct 13, 2026 •

Copy link
Copy Markdown

Hi Team,

Thank you for investigating the reported vulnerability and submitting the fix in PR #12997. I appreciate your efforts in addressing the issue.

I would like to follow up on two points regarding my report.

  1. Researcher Acknowledgment

I noticed that my contribution as the original reporter has not been acknowledged in the pull request or the related discussion. I would appreciate it if you could include my name, SanthoshKumar S, and my GitHub username, @santhoshdodo2721, in the appropriate security advisory or release notes as the researcher who reported this vulnerability.

  1. CVE Assignment

Since the vulnerability has been addressed, could you please confirm whether a CVE ID will be assigned to this issue? If a CVE has not yet been requested, I would appreciate it if the team could initiate the assignment process and publish the relevant vulnerability details in a security advisory.

Please let me know if you require any additional information from my original report.

Thank you for your time and for addressing this security issue. I look forward to your response.

Best regards,
SanthoshKumar S
GitHub: santhoshdodo2721
mail:[email protected]

@SchrodingersGat

@matmair

matmair commented Oct 13, 2026

Copy link
Copy Markdown
Member

this was disclosed using GHSA; if you are the original reporter use the appropriate channel to communicate with the security team, your name does not match the name of the reporter

@santhoshdodo2721

Copy link
Copy Markdown

Hi @matmair,

Thank you for the clarification.

I would like to clarify that I reported this vulnerability directly to the InvenTree security team via email on 2 October 2026, using the email address associated with my GitHub profile. I have also received a response from Oliver Walters acknowledging my report and confirming that he submitted the fix in [PR #12997](#12997).

My details are:

I can provide the original report email and Oliver's acknowledgment to help verify my contribution.

Could you please direct me to the appropriate security team contact or process for verifying the original reporter? I would also appreciate clarification on whether a CVE has been requested and whether researcher acknowledgment can be included in the appropriate security advisory.

Thank you for your time and assistance.

@SchrodingersGat
SchrodingersGat deleted the report-fixes branch October 13, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x report Report/Label generation security Relates to a security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants