Giter Club home page Giter Club logo

Comments (6)

36degrees avatar 36degrees commented on June 3, 2024 2

I am concerned we're going to go off on a bit of a tangent here that is not helpful to resolving the original issue. Can we start another issue if we want to discuss removing jQuery as a dependency?

@eserkansozer I think @NickColley mostly covered it, but upgrading to jQuery 3 will cause issues for users of your service using older browsers. Assuming you're trying to upgrade in response to CVE-2015-9251, I would suggest instead remaining on jQuery 1.x and ensuring that any AJAX requests you are making specify dataType, which as I understand it effectively mitigates the issue.

from govuk_frontend_toolkit.

NickColley avatar NickColley commented on June 3, 2024

Hello @eserkansozer !

We currently only have code that supports version jQuery 1.x.

jQuery version 3.x+ is two breaking releases ahead so the current code is very likely to not work with this version.

We have not updated to jQuery 3.x since it does not cover the browsers / devices as listed in the Service Manual (https://www.gov.uk/service-manual/technology/designing-for-different-browsers-and-devices#browsers-to-test-in)

I'm going to share this with the Frontend Community and also the GOV.UK Design System (who owns this 'product' at GDS), and we'll figure out the best way to move forwards.

In the meantime, my understanding about this vulnerability is that is related to jQuery's AJAX functionality, so if your service is not using this you may be okay.

For more info about this vulnerability see https://snyk.io/vuln/npm:jquery:20150627

from govuk_frontend_toolkit.

frankieroberto avatar frankieroberto commented on June 3, 2024

Now might be a good time to start removing the jQuery dependency instead?

from govuk_frontend_toolkit.

eserkansozer avatar eserkansozer commented on June 3, 2024

Thank you @NickColley @36degrees . We don't have any cross-domain Ajax requests in our service right now therefore we are safe.

The initiation of this discussion was GitHub sending us a warning notification about the vulnerability (which is still valid as anybody may misuse jQuery 1.x Ajax functions in our service or others which include front-end-toolkit as package). Though the risk may be regarded as low and not GDS's responsibility IMHO.

I understand that GDS needs to support older browsers so upgrade is not possible.

from govuk_frontend_toolkit.

36degrees avatar 36degrees commented on June 3, 2024

That all makes sense – are you happy for me to close this issue as resolved?

from govuk_frontend_toolkit.

eserkansozer avatar eserkansozer commented on June 3, 2024

from govuk_frontend_toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.