Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

chore(deps): update dependency highlight.js to 9.18.2 [security] - abandoned #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented May 28, 2022

Mend Renovate

This PR contains the following updates:

Package Change
highlight.js 8.9.1 -> 9.18.2

GitHub Vulnerability Alerts

CVE-2020-26237

Impact

Affected versions of this package are vulnerable to Prototype Pollution. A malicious HTML code block can be crafted that will result in prototype pollution of the base object's prototype during highlighting. If you allow users to insert custom HTML code blocks into your page/app via parsing Markdown code blocks (or similar) and do not filter the language names the user can provide you may be vulnerable.

The pollution should just be harmless data but this can cause problems for applications not expecting these properties to exist and can result in strange behavior or application crashes, i.e. a potential DOS vector.

If your website or application does not render user provided data it should be unaffected.

Patches

Versions 9.18.2 and 10.1.2 and newer include fixes for this vulnerability. If you are using version 7 or 8 you are encouraged to upgrade to a newer release.

Workarounds

Patch your library

Manually patch your library to create null objects for both languages and aliases:

const HLJS = function(hljs) {
  // ...
  var languages = Object.create(null);
  var aliases = Object.create(null);

Filter out bad data from end users:

Filter the language names that users are allowed to inject into your HTML to guarantee they are valid.

References

For more information

If you have any questions or comments about this advisory:


Configuration

πŸ“… Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@vercel
Copy link

vercel bot commented May 28, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
feedgator ❌ Failed (Inspect) May 28, 2022 at 7:49AM (UTC)

@renovate renovate bot changed the title chore(deps): update dependency highlight.js to 9.18.2 [security] chore(deps): update dependency highlight.js to 9.18.2 [SECURITY] Jun 27, 2022
@renovate renovate bot changed the title chore(deps): update dependency highlight.js to 9.18.2 [SECURITY] chore(deps): update dependency highlight.js to 9.18.2 [security] Jun 28, 2022
@renovate renovate bot changed the title chore(deps): update dependency highlight.js to 9.18.2 [security] chore(deps): update dependency highlight.js to 9.18.2 [security] - abandoned Mar 27, 2023
@renovate
Copy link
Author

renovate bot commented Mar 27, 2023

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant