Quick revision
The short answer
I would tell leadership that old web-layer versions miss security fixes, especially in request parsing, data binding and path matching, which are exactly the parts attackers reach first; that shared libraries forced to support five years of versions slow every team; and that each skipped version makes the eventual upgrade larger and riskier. The remedy is a policy on the maximum version age, funded as steady routine work rather than occasional projects, and a regular report of the version spread so leadership can see the risk move.
What to remember
In this answer, we saw why version drift in the web layer is dangerous: request parsing, binding and path matching face untrusted input, and old versions do not get fixes. Divergence also slows every team through shared libraries and makes each upgrade larger. We presented the risk to leadership as exposure, trend and cost, set a maximum version age backed by steady funding and automated upgrade help, and made the spread visible with a regular report.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would tell leadership that old web-layer versions miss security fixes, especially in request parsing, data binding and path matching, which are exactly the parts attackers reach first; that shared libraries forced to support five years of versions slow every team; and that each skipped version makes the eventual upgrade larger and riskier. The remedy is a policy on the maximum version age, funded as steady routine work rather than occasional projects, and a regular report of the version spread so leadership can see the risk move.
Why this question is asked
Version drift happens quietly. Each team postpones an upgrade for a good local reason, a deadline or a risky dependency, and five years later the organisation runs a spread of Spring versions that nobody chose. Leadership usually sees upgrades as cost without visible benefit, so the risk has to be explained in their terms. Interviewers ask this at the most senior level to see whether we can make a technical risk understandable and turn it into a funded policy. In this answer, we will look at why the web layer is the most exposed part, the three costs of divergence, how to present them, and the policy and reporting we would put in place.
1Why the Web Layer Is the Most Exposed
The web layer is the code that parses untrusted input from the internet before any of our own checks run. It splits URLs into paths, decides which controller matches, binds request parameters onto objects and parses JSON. Bugs in these parts are especially dangerous, because a crafted request can reach them without logging in.
Spring's history shows this. The vulnerability known as Spring4Shell in 2022 was in data binding and allowed remote code execution on some setups. Other advisories over the years concerned path matching, where a URL written in an unusual way matched a controller but not the security rule meant to protect it. Fixes for these go into supported versions. A service on a version that is no longer supported does not get them, and its team may not even hear about the problem.
2The Three Costs of Divergence
The first cost is security exposure, as above. Open-source support for each Spring Boot minor version lasts roughly a year, with longer commercial support available (check the current support policy), so a service five years behind is far outside free support.
The second cost lands on everyone else. Shared libraries, such as the platform starter, tracing and security integrations, must work with every version services still run. Supporting Spring Boot 2.7 and 3.5 at once means two code paths, the javax and jakarta namespaces, and two test matrices. Every new shared feature takes longer, so even teams that keep up are slowed by those that do not.
The third cost compounds. An upgrade of one minor version touches a few deprecations. An upgrade across five years crosses a major version, a Java version, the Jakarta namespace change, new security configuration styles and dozens of library majors at once. These large upgrades take months, break in surprising ways and are the ones that get postponed again, which makes the next attempt larger still.
| Spring Boot line | Services | Free support | Risk |
|---|---|---|---|
| 3.5 / 4.0 | 22 | yes | low |
| 3.3 / 3.4 | 18 | ending or ended | medium: plan this quarter |
| 3.0 to 3.2 | 9 | no | high: no security fixes |
| 2.7 (javax) | 6 | no | very high: major upgrade needed |
3Presenting the Risk to Leadership
Leadership does not need to know what PathPatternParser is. They need to know the exposure, the trend and the cost of acting now versus later. So the message is framed in those terms: a number of services cannot receive security fixes for the code that faces the internet; the spread is growing by so many services per quarter; the average upgrade now costs a certain number of engineer weeks and will cost more each year we wait.
A concrete example helps more than a principle. When the last critical advisory appeared, teams on supported versions patched by bumping one dependency in a day, while teams on old versions needed weeks of upgrade work or a risky backport. Putting those two numbers side by side, a day versus weeks, usually makes the case on its own.
4The Policy: Maximum Age and Steady Funding
The policy sets a maximum age: for example, every service runs a Spring Boot version that is within open-source support, and no more than one minor version behind the latest within six months of its release. Services outside the policy are visible exceptions with a named owner and a date, not silent drift.
Funding is the part that makes it work. Upgrades are routine maintenance, budgeted as a fixed share of each team's capacity, for example a few days per quarter, rather than as projects that compete with features. Small, frequent upgrades are cheap and predictable. The platform team helps by testing shared libraries against new versions early, publishing upgrade notes, and providing automated dependency update pull requests so most minor upgrades are a reviewed merge.
- New Spring Boot minor releasedplatform team tests shared libraries
- Upgrade notes and automated pull requestsone per service
- Teams upgrade within the windowroutine capacity, not a project
- Service still outside policy after the window?Yesnamed exception with owner and dateNoservice is current
- Quarterly report to leadershipspread, exceptions, trend
5 steps in order. Play them, or step through them one at a time.
5Reporting the Spread Regularly
What gets measured gets funded. A simple automated report, built from the build files or the dependency inventory, shows how many services are on each version line, how many are outside support, and how that has changed since last quarter. Presented regularly to leadership, it turns an invisible risk into a trend line they can track, and it shows that the funded upgrade time is working.
For the services already far behind, the report also supports a one-off catch-up plan: rank them by exposure, starting with internet-facing services handling sensitive data, and upgrade them first, with platform engineers pairing with the owning teams. After the catch-up, the routine policy keeps the spread from returning.
6Follow-up questions
What about services that nobody wants to touch?
They are the highest risk, because no one understands them well enough to upgrade them safely. The first step is to give them an owner and tests at the HTTP level, then upgrade. If the service is not worth that investment, it is a candidate for retirement, which the report should also make visible.
Is commercial extended support a solution?
It can buy time for a specific service with a hard constraint, and it delivers security fixes for old versions. But it does not remove the cost to shared libraries or the compounding upgrade size, so it is a bridge to an upgrade, not a replacement for the policy.
How do you stop upgrades from breaking production?
With good HTTP-level tests, a staged rollout, and small steps. Upgrading one minor version at a time keeps each change reviewable, and testing shared libraries against new versions early means most problems are found before any service upgrades.
7Conclusion
In this answer, we saw why version drift in the web layer is dangerous: request parsing, binding and path matching face untrusted input, and old versions do not get fixes. Divergence also slows every team through shared libraries and makes each upgrade larger. We presented the risk to leadership as exposure, trend and cost, set a maximum version age backed by steady funding and automated upgrade help, and made the spread visible with a regular report.
Open with
I'd explain it in three risks. First, security. The web layer is the code that parses untrusted requests, URLs, path matching, data binding, JSON, before any of our checks run, and that's where Spring has had serious advisories, Spring4Shell in data binding being the famous one, plus path matching issues where a URL bypassed a security rule.
Then, if they want more
Fixes only go into supported versions, and free support for a Boot minor is roughly a year, so a service five years behind simply doesn't get them. Second, it slows everyone. Shared libraries have to support every version still running, including javax and jakarta at the same time, so every platform feature takes longer, even for teams that keep up.
Third, it compounds. One minor upgrade is a day; five years is a Java upgrade, the Jakarta change, new security configuration and dozens of libraries at once, which takes months and tends to get postponed again. To make it concrete for leadership, I'd compare the last critical advisory: supported services patched in a day, old ones needed weeks.
Then the policy: every service within open-source support and no more than one minor behind after six months, with exceptions named and dated. Upgrades are funded as routine capacity each quarter, with the platform team testing shared libraries early and automated update pull requests.
And I'd report the version spread to leadership every quarter, so they see the risk and that the funding works.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Spring Boot 2.7
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Framework reference, Spring Web MVC
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your services are spread across Spring MVC versions from five years apart. How would you...": https://scrivio-interview-library.netlify.app/spring-boot/mvc-architecture/5fbc4546a7/