Skip to content

Update jquery.metadata.js DOM text reinterpreted as HTML #38836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: 2.4-develop
Choose a base branch
from

Conversation

Shivam7-1
Copy link
Contributor

@Shivam7-1 Shivam7-1 commented Jun 18, 2024

Description (*)

By using innerText, it will avoid the risk of HTML injection, as these properties automatically escape any HTML special characters in the provided text. This helps prevent cross-site scripting (XSS) vulnerabilities by treating the input as plain text rather than interpreted HTML.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Resolved issues:

  1. resolves [Issue] Update jquery.metadata.js DOM text reinterpreted as HTML #38852: Update jquery.metadata.js DOM text reinterpreted as HTML

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link

m2-assistant bot commented Jun 18, 2024

Hi @Shivam7-1. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.

Add the comment under your pull request to deploy test or vanilla Magento instance:
  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@Shivam7-1 Shivam7-1 changed the title Update jquery.metadata.js Update jquery.metadata.js DOM text reinterpreted as HTML Jun 18, 2024
@Shivam7-1
Copy link
Contributor Author

@magento run all tests

@engcom-Hotel
Copy link
Contributor

@magento create issue

@engcom-Hotel
Copy link
Contributor

Hello @Shivam7-1,

Thanks for your contribution!

We can see you have created multiple PRs with the same fix, some of them are as follows:

We request you to please merge all of them and create a single PR.

Thanks

@Shivam7-1
Copy link
Contributor Author

Shivam7-1 commented Jun 21, 2024

Hi @engcom-Hotel
Thanks For Reviewing
I am waiting for greeting all PR

Could You please check into this

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@engcom-Hotel
Copy link
Contributor

Hello @Shivam7-1,

I suggest creating a single PR that includes all the changes from this PR as well as the PRs mentioned in this comment.

We will proceed with that newly created PR.

Thanks!

@Shivam7-1
Copy link
Contributor Author

Shivam7-1 commented Jun 25, 2024

Hi @engcom-Hotel Thanks For Suggestion
But merging PR option is not available I think You are saying Squashing Of all PR in to one
But All other PR Braches are outdated I think all PR WOULD get Merged Seperately will be good for it As Some where innertext or innerHtml has been used So Separate PR is good I think

As All Comments in PR States That it Accepted
Thanks

@engcom-Hotel
Copy link
Contributor

You can still merge them with a single PR. Please do the needful. We are moving this PR On Hold meanwhile.

Thanks

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@Shivam7-1 Shivam7-1 mentioned this pull request Jul 18, 2024
5 tasks
@Shivam7-1
Copy link
Contributor Author

Hii @engcom-Hotel
I had Merged All PR to Single One please Check on this
#38945
Thanks

@engcom-Hotel
Copy link
Contributor

Thanks @Shivam7-1, now can you please close this PR and the PRs mentioned in this #38836 (comment), as all code changes have been merged into this PR #38945

@Shivam7-1
Copy link
Contributor Author

Hi @engcom-Hotel Is My All code for Reviewed and Merged also ?

@engcom-Hotel
Copy link
Contributor

@Shivam7-1 it will be reviewed. But as you have created a single PR by merging all of the listed PR including this one. Then we can refer to the new PR for further processing. So please close this PR and all other PRs as well.

Thanks

@Shivam7-1
Copy link
Contributor Author

Hi @engcom-Hotel I had Closed all Above PR
So can anyone From Team Review this All merge PR #38945

ASAP if Possible

Copy link

m2-assistant bot commented Nov 11, 2024

Hi @Shivam7-1. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.
❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@engcom-Hotel engcom-Hotel added the Priority: P3 May be fixed according to the position in the backlog. label Nov 12, 2024
@Shivam7-1
Copy link
Contributor Author

Shivam7-1 commented Dec 3, 2024

Hii @engcom-Charlie , @engcom-Dash @engcom-Bravo and @engcom-Hotel Could You Please Review This PR
As Soon As Possible Because its pending for Review since many months

Thanks & Regards

@Shivam7-1
Copy link
Contributor Author

Hii @engcom-Hotel Could You Please Review This PR
As Soon As Possible Because its pending for Review since many months

Thanks & Regards

@engcom-Hotel engcom-Hotel moved this to Review in Progress in Pull Request Progress Mar 3, 2025
@engcom-Hotel engcom-Hotel self-requested a review March 3, 2025 16:13
@engcom-Hotel
Copy link
Contributor

@magento run all tests

@Shivam7-1
Copy link
Contributor Author

Hii @engcom-Hotel is there anything else is required from my side

Thanks

@engcom-Hotel engcom-Hotel moved this from Review in Progress to Reviewer Approved in Pull Request Progress Mar 4, 2025
@github-project-automation github-project-automation bot moved this to Pending Review in Pull Requests Dashboard Apr 4, 2025
@engcom-Hotel engcom-Hotel moved this from Pending Review to Ready for Testing in Pull Requests Dashboard Apr 4, 2025
@engcom-Bravo engcom-Bravo added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P3 May be fixed according to the position in the backlog. Progress: ready for testing Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Status: Ready for Testing
Development

Successfully merging this pull request may close these issues.

[Issue] Update jquery.metadata.js DOM text reinterpreted as HTML
3 participants